[clang] [clang-format]: Annotate colons found in inline assembly (PR #92617)
Gedare Bloom via cfe-commits
cfe-commits at lists.llvm.org
Thu May 23 06:58:22 PDT 2024
================
@@ -1489,11 +1489,25 @@ TEST_F(TokenAnnotatorTest, RequiresDoesNotChangeParsingOfTheRest) {
TEST_F(TokenAnnotatorTest, UnderstandsAsm) {
auto Tokens = annotate("__asm{\n"
"a:\n"
- "};");
- ASSERT_EQ(Tokens.size(), 7u) << Tokens;
+ ": x\n"
+ ":};");
----------------
gedare wrote:
It's valid. The input, output, and clobber operands are a comma-separated list of C variables (or equivalently produced CPP macros), which may be empty.
https://github.com/llvm/llvm-project/pull/92617
More information about the cfe-commits
mailing list