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 | 01a430134fb5ba09a5562b2a694838e3d02aee4c (patch) | |
tree | 823a8b67cd7d0937092a4a0b78835a268987d048 /clang/test/Index/load-namespaces.cpp | |
parent | 110ed64fbbcbf27bfce6dac31c06585438c4a3d1 (diff) | |
download | bcm5719-llvm-01a430134fb5ba09a5562b2a694838e3d02aee4c.tar.gz bcm5719-llvm-01a430134fb5ba09a5562b2a694838e3d02aee4c.zip |
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.
llvm-svn: 112693
Diffstat (limited to 'clang/test/Index/load-namespaces.cpp')
-rw-r--r-- | clang/test/Index/load-namespaces.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Index/load-namespaces.cpp b/clang/test/Index/load-namespaces.cpp index e614f7ca98d..9c8db0a3a52 100644 --- a/clang/test/Index/load-namespaces.cpp +++ b/clang/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] |