[clang-format] Add BreakBeforeInlineASMColon configuration
authorAnastasiia Lukianenko <vicooodin@gmail.com>
Thu, 10 Nov 2022 21:28:15 +0000 (22:28 +0100)
committerBjörn Schäpers <bjoern@hazardy.de>
Thu, 10 Nov 2022 21:31:09 +0000 (22:31 +0100)
commitf6b252978c40bc437d8495218a69e3bd166b105b
tree15e48af69635b7ae86636ade20575b493fd5ac70
parenta7ba84a39dbe6a39c28e92773c6bcdb78676cacb
[clang-format] Add BreakBeforeInlineASMColon configuration

If true, colons in ASM parameters will be placed after line breaks.

true:
asm volatile("string",
                     :
                     : val);

false:
asm volatile("string", : : val);

Differential Revision: https://reviews.llvm.org/D91950
clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
clang/lib/Format/ContinuationIndenter.cpp
clang/lib/Format/Format.cpp
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp