[clang] [clang-format] Add BraceWrapping.AfterExportBlock option (PR #216892)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 19 12:01:22 PDT 2026
================
@@ -444,7 +444,8 @@ class LineJoiner {
if (TheLine->Last->is(tok::l_brace) && FirstNonComment != TheLine->Last &&
(FirstNonComment->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for,
TT_ForEachMacro) ||
- TheLine->startsWithExportBlock())) {
+ (TheLine->startsWithExportBlock() &&
----------------
HazardyKnusperkeks wrote:
Now that the brace is annotated, you can use that information here.
https://github.com/llvm/llvm-project/pull/216892
More information about the cfe-commits
mailing list