owenpan added inline comments.
================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:1282-1300
if (FormatTok->Tok.is(tok::string_literal)) {
nextToken();
if (FormatTok->Tok.is(tok::l_brace)) {
+ if (Style.BraceWrapping.AfterExternBlock) {
+ addUnwrappedLine();
+ }
if (!Style.IndentExternBlock) {
----------------
This `case` is kind of messy and some cleanup may be in order. A related
question: why do we make `IEBS_AfterExternBlock` depend on
`BraceWrapping.AfterExternBlock`? Can't we only have true/false for
`IndentExternBlock` and let the user set it independent of
`BraceWrapping.AfterExternBlock`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115879/new/
https://reviews.llvm.org/D115879
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits