llvm-project/clang/unittests
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
..
AST [ASTImporter] Add support for importing GenericSelectionExpr AST nodes. 2020-12-16 15:39:50 -08:00
ASTMatchers [ASTMatchers] Traverse-ignore range-for implementation details 2020-12-22 12:09:32 +00:00
Analysis Remove references to the ast_type_traits namespace 2020-12-11 00:58:46 +01:00
Basic Basic: Initialize FileEntry's fields inline, almost NFC 2020-12-10 13:57:21 -08:00
CodeGen Reland "Move the test compiler setup in a common place. NFCI" 2020-11-16 13:22:10 +00:00
CrossTU [clang][NFC] Add a missing 'override' 2020-07-17 17:35:59 -07:00
DirectoryWatcher Revert "DirectoryWatcher: add an implementation for Windows" 2020-10-13 12:35:22 -07:00
Driver [Driver] Add callback to Command execution 2020-11-05 12:21:40 +07:00
Format [clang-format] PR48569 clang-format fails to align case label with `switch` with Whitesmith Indentation 2020-12-26 15:19:03 +00:00
Frontend Revert more changes that landed on top of 741978d727 2020-12-23 14:20:21 -05:00
Index [clang] Do not consider the template arguments of bases to be bases themselves 2020-09-01 19:18:03 -04:00
Lex [clang] Make sure argument expansion locations are correct in presence of predefined buffer 2020-04-22 21:01:52 +02:00
Rename [OpenMP] "UnFix" layering problem with FrontendOpenMP 2020-04-07 14:41:18 -05:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema Use libClangTesting in the unittest for AST matchers 2020-06-04 17:40:39 +02:00
Serialization Revert "[modules] Do not cache invalid state for modules that we attempted to load." 2020-03-10 10:59:26 -07:00
StaticAnalyzer [Analyzer] Fix for `ExprEngine::computeObjectUnderConstruction()` for base and delegating consturctor initializers 2020-09-25 13:28:22 +02:00
Tooling Tooling: Migrate some tests to FileEntryRef, NFC 2020-12-10 18:05:03 -08:00
libclang [libclang] Add CXRewriter to libclang API 2020-09-04 14:17:03 -07:00
CMakeLists.txt clang: Build and run FrontendTests with CLANG_ENABLE_STATIC_ANALYZER=OFF too 2020-12-23 14:27:09 -05:00