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

Gedare Bloom via cfe-commits cfe-commits at lists.llvm.org
Fri May 24 22:23:38 PDT 2024


gedare wrote:

> 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 `(`.

done, thanks for the clarification

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


More information about the cfe-commits mailing list