1. [clang-format] throws an incorrect assertion in consumeToken() (details)
Commit 3b4c8f6807123c5e4d5a84f560599c9585ccb471 by mydeveloperday
[clang-format] throws an incorrect assertion in consumeToken()
formatting the MSVC stl
Summary: 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
``` Enable warning C4005 to find the forbidden define.
Reviewers: mitchell-stellar, STL_MSFT, klimek, krasimir
Reviewed By: mitchell-stellar
Subscribers: cfe-commits
Tags: #clang-format, #clang-tools-extra, #clang
Differential Revision:
llvm-svn: 374399
The file was modifiedclang/unittests/Format/FormatTest.cpp
The file was modifiedclang/lib/Format/TokenAnnotator.cpp