[clang] [clang-format]: Annotate colons found in inline assembly (PR #92617)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Fri May 24 19:23:45 PDT 2024


https://github.com/owenca commented:

It seems that you used 5 different assembly snippets and repeated each 3-6 times. Instead, we can have something like the following:
```
asm{Snippet 1};

__asm(Snippet 2);

__asm__(Snippet 3);

asm volatile (Snippet 4);

__asm volatile (Snippet 5);
```
Also, no space between `tok::asm` (i.e. `asm`, `__asm`, or `__asm__`) and `(`.

https://github.com/llvm/llvm-project/pull/92617


More information about the cfe-commits mailing list