[clang] [clang-format]: Annotate colons found in inline assembly (PR #92617)
Gedare Bloom via cfe-commits
cfe-commits at lists.llvm.org
Fri May 17 16:38:22 PDT 2024
gedare wrote:
With the patch:
```
$ echo " asm ( a : );" | clang-format -debug
...
M=0 C=1 T=InlineASMColon S=1 F=0 B=0 BK=0 P=43 Name=colon L=7 PPK=2 FakeLParens= FakeRParens=1 II=0x0 Text=':'
...
$ echo " asm { a : };" | clang-format -debug
...
M=0 C=1 T=InlineASMColon S=0 F=1 B=0 BK=0 P=43 Name=colon L=7 PPK=2 FakeLParens= FakeRParens=1 II=0x0 Text=':'
```
https://github.com/llvm/llvm-project/pull/92617
More information about the cfe-commits
mailing list