[PATCH] D91949: [clang-format] Add BeforeStructInitialization option in BraceWrapping configuration
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 26 10:39:48 PDT 2021
MyDeveloperDay added inline comments.
================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:2705
}
- if (FormatTok->Tok.is(tok::l_brace)) {
+ if (FormatTok->Tok.is(tok::equal)) {
+ nextToken();
----------------
shouldn't this be
```FormatTok->Tok.is(tok::equal) && Style.BraceWrapping.BeforeStructInitialization```
Otherwise you won't go into the `else if (FormatTok->Tok.is(tok::l_brace)) {` if its not turned on?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91949/new/
https://reviews.llvm.org/D91949
More information about the cfe-commits
mailing list