diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-29 23:39:52 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-29 23:39:52 +0000 |
commit | 52f1d4793588af6c5c09ab096818ff942bae3af6 (patch) | |
tree | 6b96038d9e89db1e8c40afb752aea9f16a4b430c /lib/Index/Entity.cpp | |
parent | e380c51d6f56a2cc32fa0f5723584224214c5b9f (diff) |
Modify the Indexer class so that it can return the TranslationUnit that internal
decls originated from.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index/Entity.cpp')
-rw-r--r-- | lib/Index/Entity.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Index/Entity.cpp b/lib/Index/Entity.cpp index 85b4f2e196..d33110074f 100644 --- a/lib/Index/Entity.cpp +++ b/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) |