diff options
author | Michael Zimmermann <sigmaepsilon92@gmail.com> | 2022-01-03 12:16:11 +0100 |
---|---|---|
committer | Marek Kurdej <marek.kurdej+llvm.org@gmail.com> | 2022-01-03 20:01:10 +0100 |
commit | 7972b2e42276346e85bb6d4fb7e03bbd5a9af53f (patch) | |
tree | eb5fe36eaa74a5ba8d2c60d0c7562d39ed15b560 /llvm/tools/llvm-readobj/llvm-readobj.cpp | |
parent | 364eb371012b2641b07194ae67a4f685f1da65e4 (diff) | |
download | llvm-7972b2e42276346e85bb6d4fb7e03bbd5a9af53f.zip llvm-7972b2e42276346e85bb6d4fb7e03bbd5a9af53f.tar.gz llvm-7972b2e42276346e85bb6d4fb7e03bbd5a9af53f.tar.bz2 |
[clang-format] respect AfterEnum for enums
There is some similar looking code in `TokenAnnotator.cpp` but given that I've
never worked on clang-format before I don't know what the purpose of that code
is and how it's related to `UnwrappedLineParser.cpp`.
Either way, it fixes clang-format with `BraceWrapping.AfterEnum=true` and
`AllowShortEnumsOnASingleLine=false` to behave like the documentation says.
Before this patch:
```
enum
{
A,
B
} myEnum;
```
After this patch:
```
enum {
A,
B
} myEnum;
```
According to the unittests which I had to modify this would change the LLVM
style. Please evaluate if you want to change the defaults or if you consider
the current style a bug.
Reviewed By: curdeius, HazardyKnusperkeks
Differential Revision: https://reviews.llvm.org/D106349
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions