diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-09-01 03:07:18 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-09-01 03:07:18 +0000 |
commit | 0a35bceb7768fc0be62cb644a4e31d8bfd9fb44a (patch) | |
tree | 4ae71942a6fa3da406572486143a0b314537367c /test/Index/load-namespaces.cpp | |
parent | 53b9441b5a81a24fa1f66f3f6416f1e36baa9c2f (diff) |
Implement libclang support for using directives (cursor + visitation +
suppressing USRs). Also, fix up the source location information for
using directives so that the declaration location refers to the
namespace name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/load-namespaces.cpp')
-rw-r--r-- | test/Index/load-namespaces.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Index/load-namespaces.cpp b/test/Index/load-namespaces.cpp index e614f7ca98..9c8db0a3a5 100644 --- a/test/Index/load-namespaces.cpp +++ b/test/Index/load-namespaces.cpp @@ -13,7 +13,7 @@ namespace std { namespace std98 = std; namespace std0x = std98; -// FIXME: using directives +using namespace std0x; // RUN: c-index-test -test-load-source all %s | FileCheck %s // CHECK: load-namespaces.cpp:3:11: Namespace=std:3:11 (Definition) Extent=[3:11 - 7:2] @@ -25,3 +25,5 @@ namespace std0x = std98; // CHECK: load-namespaces.cpp:13:19: NamespaceRef=std:3:11 Extent=[13:19 - 13:22] // CHECK: load-namespaces.cpp:14:11: NamespaceAlias=std0x:14:11 Extent=[14:1 - 14:24] // CHECK: load-namespaces.cpp:14:19: NamespaceRef=std98:13:11 Extent=[14:19 - 14:24] +// CHECK: load-namespaces.cpp:16:17: UsingDirective=:16:17 Extent=[16:1 - 16:22] +// CHECK: load-namespaces.cpp:16:17: NamespaceRef=std0x:14:11 Extent=[16:17 - 16:22] |