diff options
Diffstat (limited to 'clang/unittests/Tooling/Syntax/TreeTest.cpp')
-rw-r--r-- | clang/unittests/Tooling/Syntax/TreeTest.cpp | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/clang/unittests/Tooling/Syntax/TreeTest.cpp b/clang/unittests/Tooling/Syntax/TreeTest.cpp index fa5da1f..4610166 100644 --- a/clang/unittests/Tooling/Syntax/TreeTest.cpp +++ b/clang/unittests/Tooling/Syntax/TreeTest.cpp @@ -2973,7 +2973,8 @@ using namespace ::ns; `-UsingNamespaceDirective |-using |-namespace - |-:: + |-NestedNameSpecifier + | `-:: |-ns `-; )txt")); @@ -3002,8 +3003,10 @@ using ns::a; | `-} `-UsingDeclaration |-using - |-ns - |-:: + |-NestedNameSpecifier + | |-IdentifierNameSpecifier + | | `-ns + | `-:: |-a `-; )txt")); @@ -3207,11 +3210,13 @@ template <class T> struct X<T>::Y {}; |-> `-SimpleDeclaration |-struct - |-X - |-< - |-T - |-> - |-:: + |-NestedNameSpecifier + | |-SimpleTemplateNameSpecifier + | | |-X + | | |-< + | | |-T + | | `-> + | `-:: |-Y |-{ |-} @@ -3245,15 +3250,19 @@ template <class T> struct X { |-{ |-UsingDeclaration | |-using - | |-T - | |-:: + | |-NestedNameSpecifier + | | |-IdentifierNameSpecifier + | | | `-T + | | `-:: | |-foo | `-; |-UsingDeclaration | |-using | |-typename - | |-T - | |-:: + | |-NestedNameSpecifier + | | |-IdentifierNameSpecifier + | | | `-T + | | `-:: | |-bar | `-; |-} |