llvm-project/clang/unittests/Format
Marek Kurdej f66d602c3f [clang-format] Fix wrong indentation after trailing requires clause.
Fixes https://github.com/llvm/llvm-project/issues/52834.

Before this patch, clang-format would wrongly parse top-level entities (e.g. namespaces) and format:
```
template<int I>
constexpr void foo requires(I == 42) {}
namespace ns {
void foo() {}
}  // namespace ns
```
into:
``````
template<int I>
constexpr void foo requires(I == 42) {}
namespace ns {
  void foo() {}
}  // namespace ns
```
with configuration:
```
NamespaceIndentation: None
````

Reviewed By: MyDeveloperDay, HazardyKnusperkeks, owenpan

Differential Revision: https://reviews.llvm.org/D116183
2021-12-23 08:22:12 +01:00
..
CMakeLists.txt [clang-format] Add Left/Right Const fixer capability 2021-09-23 20:00:33 +01:00
CleanupTest.cpp [clang-format] Drop clangFrontend dependency for FormatTests 2020-10-20 10:13:28 +01:00
FormatTest.cpp [clang-format] Fix wrong indentation after trailing requires clause. 2021-12-23 08:22:12 +01:00
FormatTestCSharp.cpp [clang-format] Fix formatting of the code that follows C# Lambda Expressions 2021-12-17 10:42:15 -08:00
FormatTestComments.cpp Fix a violated precondition in clang-format. 2021-12-01 14:39:00 +01:00
FormatTestJS.cpp AlignConsecutiveDeclarations not working for 'const' keyword in JavsScript 2021-12-21 13:57:43 +00:00
FormatTestJava.cpp [clang-format] NFC - clang-format the FormatTests 2020-05-02 15:42:20 +01:00
FormatTestJson.cpp [clang-format] Remove spurious JSON binding when DisableFormat = true 2021-12-15 23:09:28 +00:00
FormatTestObjC.cpp [clang-format] [PR52015] clang-format should put __attribute__((foo)) on its own line before @interface / @implementation / @protocol 2021-10-20 09:09:31 +01:00
FormatTestProto.cpp [clang-format] NFC - clang-format the FormatTests 2020-05-02 15:42:20 +01:00
FormatTestRawStrings.cpp clang-format: use `pb` as a canonical raw string delimiter for google style 2021-03-09 09:07:14 +01:00
FormatTestSelective.cpp [clang-format] NFC - clang-format the FormatTests 2020-05-02 15:42:20 +01:00
FormatTestTableGen.cpp
FormatTestTextProto.cpp [clang-format] Fix handling of TextProto comments 2020-12-23 22:07:13 +01:00
FormatTestUtils.h
MacroExpanderTest.cpp [clang-format] [NFC] keep clang-format tests clang-format clean 2020-12-05 10:15:52 +00:00
NamespaceEndCommentsFixerTest.cpp [clang-format] FixNamespaceComments does not understand namespace aliases 2021-12-14 14:53:04 +00:00
QualifierFixerTest.cpp [clang-format] Left/Right alignment fixer can cause false positive replacements when they don't actually change anything 2021-09-25 17:35:41 +01:00
SortImportsTestJS.cpp clang-format: [JS] don't sort named imports if off. 2021-06-11 12:02:33 +02:00
SortImportsTestJava.cpp [clang-format] Add case aware include sorting. 2021-02-02 15:12:27 +01:00
SortIncludesTest.cpp [clang-format] [PR49298] Sort includes pass will sort inside raw strings 2021-12-12 17:00:43 +00:00
TestLexer.h [clang-format] [NFC] Fix the coding style of unit tests header file 2021-08-27 14:25:38 -07:00
TokenAnnotatorTest.cpp Fix use-after-scope introduced in 850325348a 2020-10-27 14:26:23 +00:00
UsingDeclarationsSorterTest.cpp [clang-format] NFC - clang-format the FormatTests 2020-05-02 15:42:20 +01:00