forked from OSchip/llvm-project
7ad60f6452
Summary: The MultiLine option in BreakBeforeBraces was only handling standard control statement, leading to invalid indentation with for each macros: Previous behavior: /* invalid: brace should be on the same line */ Q_FOREACH(int a; list) { foo(); } /* valid */ Q_FOREACH(int longVariable; list) { foo(); } To fix this, simply add the TT_ForEachMacro kind in the list of recognized control statements for the multiline option. This is a fix for https://bugs.llvm.org/show_bug.cgi?id=44632 Reviewers: MyDeveloperDay, mitchell-stellar Reviewed by: mitchell-stellar Contributed by: vthib Subscribers: cfe-commits Tags: #clang, #clang-format, #clang-tools-extra Differential Revision: https://reviews.llvm.org/D85304 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
CleanupTest.cpp | ||
FormatTest.cpp | ||
FormatTestCSharp.cpp | ||
FormatTestComments.cpp | ||
FormatTestJS.cpp | ||
FormatTestJava.cpp | ||
FormatTestObjC.cpp | ||
FormatTestProto.cpp | ||
FormatTestRawStrings.cpp | ||
FormatTestSelective.cpp | ||
FormatTestTableGen.cpp | ||
FormatTestTextProto.cpp | ||
FormatTestUtils.h | ||
NamespaceEndCommentsFixerTest.cpp | ||
SortImportsTestJS.cpp | ||
SortImportsTestJava.cpp | ||
SortIncludesTest.cpp | ||
UsingDeclarationsSorterTest.cpp |