Before:
#define A \
{ a, a } \
,
After:
#define A {a, a},
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245837
91177308-0d34-0410-b5e6-
96231b3b80d8
case tok::l_brace:
// FIXME: Add parameter whether this can happen - if this happens, we must
// be in a non-declaration context.
+ if (!FormatTok->is(TT_MacroBlockBegin) && tryToParseBracedList())
+ continue;
parseBlock(/*MustBeDeclaration=*/false);
addUnwrappedLine();
break;
" void f() { int i{2}; }\n"
" };\n"
"};");
+ verifyFormat("#define A {a, a},");
// In combination with BinPackArguments = false.
FormatStyle NoBinPacking = getLLVMStyle();