[clang] [clang-format] annotate inline assembly parens (PR #201703)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 5 09:20:29 PDT 2026
================
@@ -1487,23 +1487,47 @@ void UnwrappedLineParser::parseStructuralElement(
return;
}
switch (FormatTok->Tok.getKind()) {
- case tok::kw_asm:
+ case tok::kw_asm: {
+ bool DoNotFormat = false;
----------------
HazardyKnusperkeks wrote:
I also have my problems with `DoNotFormat`, especially since we are parsing here and not formatting. I find it quite counter intuitive that, when `DoNotFormat` is set we do something, and not the other way around.
https://github.com/llvm/llvm-project/pull/201703
More information about the cfe-commits
mailing list