This causes a compile error when indexing. MS's stddef.h contains this code to detect versions of their compiler that don't have a built-in offsetof. In that case, it subsitutes a fallback that doesn't work with static_assert because it's not a compile-time constant:
clang's pretending to be _MSC, and (I think) vs-sourcetrail is putting MS's headers before clang's. One solution might be for vs-sourcetrail to put -D_CRT_USE_BUILTIN_OFFSETOF on the clang command line.
This causes a compile error when indexing. MS's stddef.h contains this code to detect versions of their compiler that don't have a built-in offsetof. In that case, it subsitutes a fallback that doesn't work with static_assert because it's not a compile-time constant:
clang's pretending to be _MSC, and (I think) vs-sourcetrail is putting MS's headers before clang's. One solution might be for vs-sourcetrail to put -D_CRT_USE_BUILTIN_OFFSETOF on the clang command line.