aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/MultiplexConsumer.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-28 04:56:00 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-28 04:56:00 +0000
commit6f3ce979a7748fd117e6473d6272b16d643b6262 (patch)
treede0942a2ca83386321511f21b544289d0862330f /lib/Frontend/MultiplexConsumer.cpp
parent991bf49f68e8caeb900dd9738712b861073363d9 (diff)
[libclang] Indexing API: If the client requested to get a CXTranslationUnit after
indexing, honor all the TU options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/MultiplexConsumer.cpp')
-rw-r--r--lib/Frontend/MultiplexConsumer.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Frontend/MultiplexConsumer.cpp b/lib/Frontend/MultiplexConsumer.cpp
index e7b886ccb6..6ca40abc2a 100644
--- a/lib/Frontend/MultiplexConsumer.cpp
+++ b/lib/Frontend/MultiplexConsumer.cpp
@@ -184,9 +184,10 @@ void MultiplexConsumer::Initialize(ASTContext &Context) {
}
bool MultiplexConsumer::HandleTopLevelDecl(DeclGroupRef D) {
+ bool Continue = true;
for (size_t i = 0, e = Consumers.size(); i != e; ++i)
- Consumers[i]->HandleTopLevelDecl(D);
- return true;
+ Continue = Continue && Consumers[i]->HandleTopLevelDecl(D);
+ return Continue;
}
void MultiplexConsumer::HandleInterestingDecl(DeclGroupRef D) {
@@ -204,6 +205,11 @@ void MultiplexConsumer::HandleTagDeclDefinition(TagDecl *D) {
Consumers[i]->HandleTagDeclDefinition(D);
}
+void MultiplexConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {
+ for (size_t i = 0, e = Consumers.size(); i != e; ++i)
+ Consumers[i]->HandleTopLevelDeclInObjCContainer(D);
+}
+
void MultiplexConsumer::CompleteTentativeDefinition(VarDecl *D) {
for (size_t i = 0, e = Consumers.size(); i != e; ++i)
Consumers[i]->CompleteTentativeDefinition(D);