[clang] [clang-format]: Annotate colons found in inline assembly (PR #92617)
Hirofumi Nakamura via cfe-commits
cfe-commits at lists.llvm.org
Fri May 24 21:12:51 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);
----------------
hnakamura5 wrote:
No objection. This seems redundant. Thank you for removing.
https://github.com/llvm/llvm-project/pull/92617
More information about the cfe-commits
mailing list