[clang] [clang-format]: Annotate colons found in inline assembly (PR #92617)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Wed May 22 23:33:39 PDT 2024
================
@@ -1358,6 +1358,8 @@ class AnnotatingParser {
Line.First->startsSequence(tok::kw_export, Keywords.kw_module) ||
Line.First->startsSequence(tok::kw_export, Keywords.kw_import)) {
Tok->setType(TT_ModulePartitionColon);
+ } else if (Line.First->is(tok::kw_asm)) {
+ Tok->setType(TT_InlineASMColon);
----------------
owenca wrote:
Does the `else if` block (lines 1430-1436) at the end of this `case tok::colon` become redundant now? It should be removed if yes.
https://github.com/llvm/llvm-project/pull/92617
More information about the cfe-commits
mailing list