[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:20:51 PDT 2024
================
@@ -1488,12 +1488,247 @@ TEST_F(TokenAnnotatorTest, RequiresDoesNotChangeParsingOfTheRest) {
TEST_F(TokenAnnotatorTest, UnderstandsAsm) {
auto Tokens = annotate("__asm{\n"
- "a:\n"
- "};");
- ASSERT_EQ(Tokens.size(), 7u) << Tokens;
+ "\"a\":\n"
+ ": x\n"
+ ":};");
----------------
gedare wrote:
AFAIK it's not valid, unless `a` is a CPP string.
https://github.com/llvm/llvm-project/pull/92617
More information about the cfe-commits
mailing list