diff options
author | Stephen Kelly <steveire@gmail.com> | 2019-01-15 22:50:37 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2019-01-15 22:50:37 +0000 |
commit | 90edb310c697b2f5008ebd38e377ef8f65bf6a21 (patch) | |
tree | a698908ca425040d3d2488f3ded46e679797a2d6 /clang/test/AST/ast-dump-funcs.cpp | |
parent | 6f785b5fd0050ffcb9a6fcbb3b6acd75f00fff90 (diff) |
Re-order overrides in FunctionDecl dump
Output all content which is local to the FunctionDecl before traversing
to child AST nodes.
This is necessary so that all of the part which is local to the
FunctionDecl can be split into a different method.
Reviewers: aaron.ballman
Differential Revision: https://reviews.llvm.org/D55083
Diffstat (limited to 'clang/test/AST/ast-dump-funcs.cpp')
-rw-r--r-- | clang/test/AST/ast-dump-funcs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/AST/ast-dump-funcs.cpp b/clang/test/AST/ast-dump-funcs.cpp index cbd430d01ff..62ae9648dde 100644 --- a/clang/test/AST/ast-dump-funcs.cpp +++ b/clang/test/AST/ast-dump-funcs.cpp @@ -56,10 +56,10 @@ struct S { struct T : S { // T is not referenced, but S is void f(float, int = 100) override; // CHECK: CXXMethodDecl 0x{{[^ ]*}} <line:[[@LINE-1]]:3, col:28> col:8 f 'void (float, int)' + // CHECK-NEXT: Overrides: [ 0x{{[^ ]*}} S::f 'void (float, int)' ] // CHECK-NEXT: ParmVarDecl 0x{{[^ ]*}} <col:10> col:15 'float' // CHECK-NEXT: ParmVarDecl 0x{{[^ ]*}} <col:17, col:23> col:21 'int' cinit // CHECK-NEXT: IntegerLiteral 0x{{[^ ]*}} <col:23> 'int' 100 - // CHECK-NEXT: Overrides: [ 0x{{[^ ]*}} S::f 'void (float, int)' ] // CHECK-NEXT: OverrideAttr // CHECK: CXXConstructorDecl 0x{{[^ ]*}} <line:[[@LINE-9]]:8> col:8 implicit T 'void (const T &)' inline default_delete noexcept-unevaluated |