[clang] [clang-format]: Annotate colons found in inline assembly (PR #92617)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Thu May 23 20:18:59 PDT 2024
================
@@ -1426,12 +1428,9 @@ class AnnotatingParser {
// the colon are passed as macro arguments.
Tok->setType(TT_ObjCMethodExpr);
} else if (Contexts.back().ContextKind == tok::l_paren &&
- !Line.InPragmaDirective) {
- if (Style.isTableGen() && Contexts.back().IsTableGenDAGArg) {
- Tok->setType(TT_TableGenDAGArgListColon);
- break;
- }
- Tok->setType(TT_InlineASMColon);
+ !Line.InPragmaDirective && Style.isTableGen() &&
+ Contexts.back().IsTableGenDAGArg) {
+ Tok->setType(TT_TableGenDAGArgListColon);
----------------
owenca wrote:
I was thinking that this entire block could be deleted because `TT_TableGenDAGArgListColon` was already correctly set by now.
https://github.com/llvm/llvm-project/pull/92617
More information about the cfe-commits
mailing list