llvm-project/clang/unittests/Format
Owen Pan e33243c950 [clang-format] Link the braces of a block in UnwrappedLineParser
This includes TT_MacroBlockBegin and TT_MacroBlockEnd as well.

We can no longer use MatchingParen of FormatToken as an indicator
to mark optional braces. Instead, we directly set Optional of an
l_brace first and reset it later if it turns out that the braces
are not optional.

Also added a test case for deeply nested loops.

Differential Revision: https://reviews.llvm.org/D139257
2022-12-04 12:01:26 -08:00
..
.clang-format
BracesInserterTest.cpp
BracesRemoverTest.cpp [clang-format] Link the braces of a block in UnwrappedLineParser 2022-12-04 12:01:26 -08:00
CMakeLists.txt
CleanupTest.cpp
ConfigParseTest.cpp
DefinitionBlockSeparatorTest.cpp
FormatTest.cpp
FormatTestCSharp.cpp
FormatTestComments.cpp [clang-format] Don't move comments if AlignTrailingComments: Leave 2022-12-01 16:07:06 -08:00
FormatTestJS.cpp
FormatTestJava.cpp
FormatTestJson.cpp
FormatTestObjC.cpp
FormatTestProto.cpp
FormatTestRawStrings.cpp
FormatTestSelective.cpp
FormatTestTableGen.cpp
FormatTestTextProto.cpp
FormatTestUtils.h
FormatTestVerilog.cpp
MacroCallReconstructorTest.cpp Fix test output regression from ee88c0cf09. 2022-11-25 13:53:34 +00:00
MacroExpanderTest.cpp
NamespaceEndCommentsFixerTest.cpp
QualifierFixerTest.cpp
SortImportsTestJS.cpp
SortImportsTestJava.cpp
SortIncludesTest.cpp
TestLexer.h
TokenAnnotatorTest.cpp
UsingDeclarationsSorterTest.cpp