[all-commits] [llvm/llvm-project] c7dcc4: [clang-format] PR48569 clang-format fails to align...
MyDeveloperDay via All-commits
all-commits at lists.llvm.org
Sat Dec 26 07:23:21 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: c7dcc4c72588db9ffb7ae379983450193b943f5b
https://github.com/llvm/llvm-project/commit/c7dcc4c72588db9ffb7ae379983450193b943f5b
Author: mydeveloperday <mydeveloperday at gmail.com>
Date: 2020-12-26 (Sat, 26 Dec 2020)
Changed paths:
M clang/lib/Format/UnwrappedLineParser.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list