[clang] [clang] Instantiate attributes on other decl types (PR #115924)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 14 11:36:48 PST 2024
================
@@ -44,6 +47,11 @@ void fn3() { template_fn<5>(); }
// CHECK: -IntegerLiteral 0x{{[0-9a-z]+}} {{<line:[0-9]+:[0-9]+(, col:[0-9]+)?>}} 'int' 5
// CHECK: -IntegerLiteral 0x{{[0-9a-z]+}} {{<col:[0-9]+(, col:[0-9]+)?>}} 'int' 1
// CHECK: -AnnotateAttr 0x{{[0-9a-z]+}} {{<line:[0-9]+:[0-9]+(, col:[0-9]+)?>}} "example"
+// CHECK: -StringLiteral 0x{{[0-9a-z]+}} {{<col:[0-9]+(, col:[0-9]+)?>}} 'const char[{{[0-9]+}}]' lvalue "ghi"
----------------
erichkeane wrote:
Can you add more check-lines that shows this is a part of the label? That is, match the labelstmt/etc.
https://github.com/llvm/llvm-project/pull/115924
More information about the cfe-commits
mailing list