[PATCH] D91950: [clang-format] Add BreakBeforeInlineASMColon configuration

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 26 04:34:15 PST 2020


MyDeveloperDay added a comment.

Do you think we should show what it looks like with more complex asm examples in the tests?

what would the following look like?

` asm volatile("rbit %[aVal], %[aVal]" : [aVal] "+r"(val) : "[aVal]"(val));`
`__asm__ __volatile__("str x0, %0" : "=m"(regs->regs[0]));`
`asm volatile ("get\t%0,rfsl" stringify(id) : "=d" (val))`

  asm ("mov %1, %0\n\t"
      "add $1, %0"
      : "=r" (dst) 
      : "r" (src));

For the "purpose of the tape" is there a reason or group of people who prefer this style? (gcc, linux kernel)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91950/new/

https://reviews.llvm.org/D91950



More information about the cfe-commits mailing list