llvm-capstone/clang/lib/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
..
AffectedRangeManager.cpp
AffectedRangeManager.h
BreakableToken.cpp [clang-format] Fix handling of TextProto comments 2020-12-23 22:07:13 +01:00
BreakableToken.h
CMakeLists.txt [clang-format] Add a MacroExpander. 2020-09-25 14:08:13 +02:00
ContinuationIndenter.cpp [clang-format] Add IndentPragma style to eliminate common clang-format off scenario 2020-12-10 11:17:33 +00:00
ContinuationIndenter.h [clang-format] Fix AlignOperands when BreakBeforeBinaryOperators is set 2020-05-15 16:40:31 +02:00
Encoding.h
Format.cpp [clang-format] Add SpaceBeforeCaseColon option 2020-12-23 22:07:14 +01:00
FormatInternal.h Move clang/Tooling/Core/Lookup.h to clang/Tooling/Refactoring/Lookup.h 2020-10-20 10:13:28 +01:00
FormatToken.cpp [clang-format] Fix formatting of _Atomic() qualifier 2020-09-07 10:09:18 +01:00
FormatToken.h [clang-format] Improve clang-formats handling of concepts 2020-12-04 17:45:50 +00:00
FormatTokenLexer.cpp clang-format: [JS] support new assignment operators. 2020-11-10 09:26:46 +01:00
FormatTokenLexer.h Hand Allocator and IdentifierTable into FormatTokenLexer. 2020-07-07 11:56:34 +02:00
MacroExpander.cpp clang/Frontend: Use MemoryBufferRef in FrontendInputFile (and remove SourceManager::getBuffer) 2020-10-20 13:35:46 -04:00
Macros.h [clang-format] Add a MacroExpander. 2020-09-25 14:08:13 +02:00
NamespaceEndCommentsFixer.cpp [clang-format] [PR46130] When editing a file with unbalance {} the namespace comment fixer can incorrectly comment the wrong closing brace 2020-05-30 13:15:27 +01:00
NamespaceEndCommentsFixer.h
SortJavaScriptImports.cpp [ADT/STLExtras.h] - Add llvm::is_sorted wrapper and update callers. 2020-04-14 14:11:02 +03:00
SortJavaScriptImports.h
TokenAnalyzer.cpp Hand Allocator and IdentifierTable into FormatTokenLexer. 2020-07-07 11:56:34 +02:00
TokenAnalyzer.h
TokenAnnotator.cpp [clang-format] Add SpaceBeforeCaseColon option 2020-12-23 22:07:14 +01:00
TokenAnnotator.h
UnwrappedLineFormatter.cpp [clang-format] Add IndentPragma style to eliminate common clang-format off scenario 2020-12-10 11:17:33 +00:00
UnwrappedLineFormatter.h
UnwrappedLineParser.cpp [clang-format] PR48569 clang-format fails to align case label with switch with Whitesmith Indentation 2020-12-26 15:19:03 +00:00
UnwrappedLineParser.h [clang-format] Add IndentPragma style to eliminate common clang-format off scenario 2020-12-10 11:17:33 +00:00
UsingDeclarationsSorter.cpp
UsingDeclarationsSorter.h
WhitespaceManager.cpp Revert "[clang-format] Fix AlignConsecutive on PP blocks" 2020-10-17 19:52:51 +02:00
WhitespaceManager.h [clang-format][PR45816] Add AlignConsecutiveBitFields 2020-05-20 07:42:58 +01:00