================
@@ -1487,23 +1487,47 @@ void UnwrappedLineParser::parseStructuralElement(
return;
}
switch (FormatTok->Tok.getKind()) {
- case tok::kw_asm:
+ case tok::kw_asm: {
+ bool DoNotFormat = false;
+ tok::TokenKind OpenType;
+ tok::TokenKind CloseType;
nextToken();
- if (FormatTok->is(tok::l_brace)) {
+ while (FormatTok &&
+ FormatTok->isOneOf(tok::kw_volatile, tok::kw_inline, tok::kw_goto))
{
----------------
HazardyKnusperkeks wrote:
This is untested code, isn't it?
https://github.com/llvm/llvm-project/pull/201703
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits