An incorrect assertion is thrown when clang-formatting MSVC's STL library
Assertion failed: !Line.startsWith(tok::hash), file C:/llvm/llvm-project/clang/lib/Format/TokenAnnotator.cpp, line 847 Stack dump: 0. Program arguments: C:\llvm\build\bin\clang-format.exe -i -n ./stl/inc/xkeycheck.h
#if defined(while) #define while EMIT WARNING C4005 #error The C++ Standard Library forbids macroizing the keyword "while". \ Enable warning C4005 to find the forbidden define. #endif // while
It's not clear to me whether or not the token should be consumed. The previous assertion leads me to think no, and in that case, I think this should be
A comment on this would also be helpful.