diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-09-02 17:35:32 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-09-02 17:35:32 +0000 |
commit | c5ade2e3644a5822df63e442788d68c591ccdc97 (patch) | |
tree | 0199ec55fd1f5730788b48216edef3bd0b969c21 /test/Index/load-classes.cpp | |
parent | 73556e0d961e2d58eae232e647c9def8da1caecf (diff) |
Implement basic visitation for nested name specifiers via libclang
cursors. Sadly, this visitation is a hack, because we don't have
proper source-location information for nested-name-specifiers in the
AST. It does improve on the status quo, however.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/load-classes.cpp')
-rw-r--r-- | test/Index/load-classes.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Index/load-classes.cpp b/test/Index/load-classes.cpp index 478bf61a44..349ebdecd7 100644 --- a/test/Index/load-classes.cpp +++ b/test/Index/load-classes.cpp @@ -7,6 +7,9 @@ struct X { operator X*(); }; +X::X(int value) { +} + // RUN: c-index-test -test-load-source all %s | FileCheck %s // CHECK: load-classes.cpp:3:8: StructDecl=X:3:8 (Definition) Extent=[3:1 - 8:2] // CHECK: load-classes.cpp:4:3: CXXConstructor=X:4:3 Extent=[4:3 - 4:15] @@ -20,3 +23,6 @@ struct X { // FIXME: missing TypeRef in the destructor name // CHECK: load-classes.cpp:7:3: CXXConversion=operator struct X *:7:3 Extent=[7:3 - 7:16] // CHECK: load-classes.cpp:7:12: TypeRef=struct X:3:8 Extent=[7:12 - 7:13] +// CHECK: load-classes.cpp:10:4: CXXConstructor=X:10:4 (Definition) Extent=[10:4 - 11:2] +// CHECK: load-classes.cpp:10:1: TypeRef=struct X:3:8 Extent=[10:1 - 10:2] +// CHECK: load-classes.cpp:10:10: ParmDecl=value:10:10 (Definition) Extent=[10:6 - 10:15] |