summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/Entity.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-29 23:39:52 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-29 23:39:52 +0000
commitaf7929664503a2398800767892d132a0667d42c7 (patch)
tree54e2aaf8d3b94540df9b8e161727e1eaad918f0d /clang/lib/Index/Entity.cpp
parent4560276cf585666cf5fc5baa1fb046b82417cff9 (diff)
downloadbcm5719-llvm-af7929664503a2398800767892d132a0667d42c7.tar.gz
bcm5719-llvm-af7929664503a2398800767892d132a0667d42c7.zip
Modify the Indexer class so that it can return the TranslationUnit that internal
decls originated from. llvm-svn: 77534
Diffstat (limited to 'clang/lib/Index/Entity.cpp')
-rw-r--r--clang/lib/Index/Entity.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Index/Entity.cpp b/clang/lib/Index/Entity.cpp
index 85b4f2e1961..d33110074f2 100644
--- a/clang/lib/Index/Entity.cpp
+++ b/clang/lib/Index/Entity.cpp
@@ -59,11 +59,12 @@ Entity EntityGetter::VisitNamedDecl(NamedDecl *D) {
return Entity(D);
// FIXME: Only works for DeclarationNames that are identifiers.
+ // Treats other DeclarationNames as internal Decls for now..
DeclarationName Name = D->getDeclName();
if (!Name.isIdentifier())
- return Entity();
+ return Entity(D);
IdentifierInfo *II = Name.getAsIdentifierInfo();
if (!II)
OpenPOWER on IntegriCloud