hanchenye-llvm-project/clang/lib/Format
Paul Hoad 3b4c8f6807 [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: https://reviews.llvm.org/D68707

llvm-svn: 374399
2019-10-10 17:54:47 +00:00
..
AffectedRangeManager.cpp
AffectedRangeManager.h
BreakableToken.cpp clang-format clang/lib/Format 2019-07-29 13:26:48 +00:00
BreakableToken.h [clang-format] Fix bug in block comment reflow that joins * and / 2019-05-03 23:15:40 +00:00
CMakeLists.txt
ContinuationIndenter.cpp [clang-format] [PR43333] Fix C# breaking before function name when using Attributes 2019-10-04 07:56:49 +00:00
ContinuationIndenter.h [clang-format] Fix indent of trailing raw string param after newline 2019-04-18 17:14:05 +00:00
Encoding.h [clang-format][PR41964] Fix crash with SIGFPE when TabWidth is set to 0 and line starts with tab 2019-09-18 18:57:09 +00:00
Format.cpp [clang-format] [PR43333] Fix C# breaking before function name when using Attributes 2019-10-04 07:56:49 +00:00
FormatInternal.h
FormatToken.cpp
FormatToken.h clang-format: Support `if CONSTEXPR` if CONSTEXPR is a macro. 2019-07-27 02:41:40 +00:00
FormatTokenLexer.cpp [clang-format] [PR43338] C# clang format has space issues betweern C# only keywords 2019-10-04 08:10:22 +00:00
FormatTokenLexer.h [clang-format] [PR43338] C# clang format has space issues betweern C# only keywords 2019-10-04 08:10:22 +00:00
NamespaceEndCommentsFixer.cpp clang-format: Fix namespace end comments for namespaces with attributes and macros. 2019-07-23 17:49:45 +00:00
NamespaceEndCommentsFixer.h
SortJavaScriptImports.cpp Use llvm::stable_sort 2019-04-24 14:43:05 +00:00
SortJavaScriptImports.h
TokenAnalyzer.cpp
TokenAnalyzer.h [clang-format] Remove unused Environment constructor. 2019-04-18 00:36:51 +00:00
TokenAnnotator.cpp [clang-format] throws an incorrect assertion in consumeToken() formatting the MSVC stl 2019-10-10 17:54:47 +00:00
TokenAnnotator.h clang-format clang/lib/Format 2019-07-29 13:26:48 +00:00
UnwrappedLineFormatter.cpp [clang-format] Add ability to wrap braces after multi-line control statements 2019-10-03 18:42:31 +00:00
UnwrappedLineFormatter.h
UnwrappedLineParser.cpp [clang-format] Add ability to wrap braces after multi-line control statements 2019-10-03 18:42:31 +00:00
UnwrappedLineParser.h [clang-format] Add new style option IndentGotoLabels 2019-09-12 10:07:14 +00:00
UsingDeclarationsSorter.cpp Use llvm::stable_sort 2019-04-24 14:43:05 +00:00
UsingDeclarationsSorter.h
WhitespaceManager.cpp [clang-format][PR41964] Fix crash with SIGFPE when TabWidth is set to 0 and line starts with tab 2019-09-18 18:57:09 +00:00
WhitespaceManager.h clang-format: Add new style option AlignConsecutiveMacros 2019-07-02 15:53:14 +00:00