aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/Indexing.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-10-03 01:58:28 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-10-03 01:58:28 +0000
commit95c579cae01118eadd311d445ff7f491d0011fb0 (patch)
tree5406baf045fdf12a8784171b3fb30145195f3b4c /tools/libclang/Indexing.cpp
parent6880f492365cc4fa4c941aa83688635003ee7498 (diff)
Some renames to use the 'visitor' nomenclature, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/Indexing.cpp')
-rw-r--r--tools/libclang/Indexing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libclang/Indexing.cpp b/tools/libclang/Indexing.cpp
index 598dbce7b6..6b9abbcf03 100644
--- a/tools/libclang/Indexing.cpp
+++ b/tools/libclang/Indexing.cpp
@@ -472,7 +472,7 @@ static void indexPreprocessingRecord(ASTUnit &Unit, IndexingContext &IdxCtx) {
}
}
-static bool topLevelDeclReceiver(void *context, const Decl *D) {
+static bool topLevelDeclVisitor(void *context, const Decl *D) {
IndexingContext &IdxCtx = *static_cast<IndexingContext*>(context);
IdxCtx.indexTopLevelDecl(D);
if (IdxCtx.shouldAbort())
@@ -481,7 +481,7 @@ static bool topLevelDeclReceiver(void *context, const Decl *D) {
}
static void indexTranslationUnit(ASTUnit &Unit, IndexingContext &IdxCtx) {
- Unit.applyOnLocalTopLevelDecls(&IdxCtx, topLevelDeclReceiver);
+ Unit.visitLocalTopLevelDecls(&IdxCtx, topLevelDeclVisitor);
}
static void indexDiagnostics(CXTranslationUnit TU, IndexingContext &IdxCtx) {