summaryrefslogtreecommitdiffstats
path: root/clang/tools
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-12-02 23:23:56 +0000
committerDouglas Gregor <dgregor@apple.com>2011-12-02 23:23:56 +0000
commitba34552e79aaf7ac5db21a7b6e9c00aab75f4732 (patch)
tree73d479ee4d1220393f08cd83e51bb3d97f872004 /clang/tools
parent45ccba64ab34275cf272df01ae838524b94f5e2b (diff)
downloadbcm5719-llvm-ba34552e79aaf7ac5db21a7b6e9c00aab75f4732.tar.gz
bcm5719-llvm-ba34552e79aaf7ac5db21a7b6e9c00aab75f4732.zip
Introduce a module import declaration, so that we properly represent, e.g.,
__import_module__ std.vector; in the AST. llvm-svn: 145725
Diffstat (limited to 'clang/tools')
-rw-r--r--clang/tools/libclang/CIndex.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index beb50a7c874..5e1d1234d97 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/tools/libclang/CIndex.cpp
@@ -4000,6 +4000,7 @@ CXCursor clang_getCursorDefinition(CXCursor C) {
case Decl::Block:
case Decl::Label: // FIXME: Is this right??
case Decl::ClassScopeFunctionSpecialization:
+ case Decl::Import:
return C;
// Declaration kinds that don't make any sense here, but are
OpenPOWER on IntegriCloud