diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-01-22 21:51:20 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-01-22 21:51:20 +0000 |
commit | bc909618f290ff8b0976620a3738558e9d2842e6 (patch) | |
tree | b1f127bc0dc7882ff932bdab54dad5bd95934d15 /clang/test/Misc/ast-dump-attr.cpp | |
parent | 339506d151d96582c74c14dfff191d5acbe3c8af (diff) | |
download | bcm5719-llvm-bc909618f290ff8b0976620a3738558e9d2842e6.tar.gz bcm5719-llvm-bc909618f290ff8b0976620a3738558e9d2842e6.zip |
If an attribute has a semantically meaningful spelling (such as ArgumentWithTypeTagAttr or MSInheritanceAttr), display the spelling used for the attribute as part of the AST dump. This should ease debugging the AST for these attributes. Attributes without semantically meaningful spelling variations are not affected.
llvm-svn: 199834
Diffstat (limited to 'clang/test/Misc/ast-dump-attr.cpp')
-rw-r--r-- | clang/test/Misc/ast-dump-attr.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/Misc/ast-dump-attr.cpp b/clang/test/Misc/ast-dump-attr.cpp index 5b96797d120..1f0e780558f 100644 --- a/clang/test/Misc/ast-dump-attr.cpp +++ b/clang/test/Misc/ast-dump-attr.cpp @@ -29,12 +29,12 @@ void TestAttributedStmt() { int TestAlignedNull __attribute__((aligned)); // CHECK: VarDecl{{.*}}TestAlignedNull -// CHECK-NEXT: AlignedAttr +// CHECK-NEXT: AlignedAttr {{.*}} aligned // CHECK-NEXT: <<<NULL>>> int TestAlignedExpr __attribute__((aligned(4))); // CHECK: VarDecl{{.*}}TestAlignedExpr -// CHECK-NEXT: AlignedAttr +// CHECK-NEXT: AlignedAttr {{.*}} aligned // CHECK-NEXT: IntegerLiteral int TestEnum __attribute__((visibility("default"))); @@ -63,17 +63,17 @@ void function1(void *) { void TestIdentifier(void *, int) __attribute__((pointer_with_type_tag(ident1,1,2))); // CHECK: FunctionDecl{{.*}}TestIdentifier -// CHECK: ArgumentWithTypeTagAttr{{.*}} ident1 +// CHECK: ArgumentWithTypeTagAttr{{.*}} pointer_with_type_tag ident1 void TestBool(void *, int) __attribute__((pointer_with_type_tag(bool1,1,2))); // CHECK: FunctionDecl{{.*}}TestBool -// CHECK: ArgumentWithTypeTagAttr{{.*}} IsPointer +// CHECK: ArgumentWithTypeTagAttr{{.*}}pointer_with_type_tag bool1 0 1 IsPointer void TestUnsigned(void *, int) __attribute__((pointer_with_type_tag(unsigned1,1,2))); // CHECK: FunctionDecl{{.*}}TestUnsigned -// CHECK: ArgumentWithTypeTagAttr{{.*}} 0 1 +// CHECK: ArgumentWithTypeTagAttr{{.*}} pointer_with_type_tag unsigned1 0 1 void TestInt(void) __attribute__((constructor(123))); // CHECK: FunctionDecl{{.*}}TestInt |