llvm-project/clang/unittests/Format
mydeveloperday c7dcc4c725 [clang-format] PR48569 clang-format fails to align case label with `switch` with Whitesmith Indentation
https://bugs.llvm.org/show_bug.cgi?id=48569

This is a tentative fix which addresses a PR raise regarding Case indentation when working with Whitesmiths Indentation

I could not find online any reference sources as to what the case indentation for Whitesmith's should be (or be allowed to be)

But according to the documentation, we don't obey the rules for Whitesmith's

```
In particular, the documentation states that this option is to "indent case labels one level from the switch statement. When false, use the same indentation level as for the switch statement."
```

The behaviour we add here is actually as the TODO in the tests used to state in {D67627}, but when {D82016} was added and I brought these tests out from being TODO I realized I changed the indentation.

Reviewed By: curdeius, HazardyKnusperkeks

Differential Revision: https://reviews.llvm.org/D93806
2020-12-26 15:19:03 +00:00
..
CMakeLists.txt [clang-format] Fix misformatted macro definitions after D86959 2020-10-27 12:16:46 +00:00
CleanupTest.cpp [clang-format] Drop clangFrontend dependency for FormatTests 2020-10-20 10:13:28 +01:00
FormatTest.cpp [clang-format] PR48569 clang-format fails to align case label with `switch` with Whitesmith Indentation 2020-12-26 15:19:03 +00:00
FormatTestCSharp.cpp [clang-format] NFC ensure the clang-format tests remain clang-formatted 2020-09-18 18:16:02 +01:00
FormatTestComments.cpp [clang-format] PR48539 ReflowComments breaks Qt translation comments 2020-12-23 14:45:14 +00:00
FormatTestJS.cpp [clang-format] do not break before @tags in JS comments 2020-11-11 12:27:15 +01:00
FormatTestJava.cpp [clang-format] NFC - clang-format the FormatTests 2020-05-02 15:42:20 +01:00
FormatTestObjC.cpp Don’t break before nested block param when prior param is not a block 2020-11-20 15:16:04 -08:00
FormatTestProto.cpp [clang-format] NFC - clang-format the FormatTests 2020-05-02 15:42:20 +01:00
FormatTestRawStrings.cpp [clang-format] Drop clangFrontend dependency for FormatTests 2020-10-20 10:13:28 +01:00
FormatTestSelective.cpp [clang-format] NFC - clang-format the FormatTests 2020-05-02 15:42:20 +01:00
FormatTestTableGen.cpp [clang-format][TableGen] Don't add spaces around items in square braces. 2019-03-01 00:12:18 +00:00
FormatTestTextProto.cpp [clang-format] Fix handling of TextProto comments 2020-12-23 22:07:13 +01:00
FormatTestUtils.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MacroExpanderTest.cpp [clang-format] [NFC] keep clang-format tests clang-format clean 2020-12-05 10:15:52 +00:00
NamespaceEndCommentsFixerTest.cpp [clang-format] Drop clangFrontend dependency for FormatTests 2020-10-20 10:13:28 +01:00
SortImportsTestJS.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SortImportsTestJava.cpp [clang-format] Add a option for the position of Java static import 2020-09-18 18:12:21 +01:00
SortIncludesTest.cpp [clang-format] Add option for case sensitive regexes for sorted includes 2020-12-05 16:33:21 +00:00
TestLexer.h Fix use-after-scope introduced in 850325348a 2020-10-27 14:26:23 +00: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