From e514b200aa6770b9a0516f4185744974cf17cff6 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Wed, 3 Oct 2012 01:58:28 +0000 Subject: Some renames to use the 'visitor' nomenclature, no functionality change. llvm-svn: 165083 --- clang/tools/libclang/Indexing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/tools/libclang/Indexing.cpp') diff --git a/clang/tools/libclang/Indexing.cpp b/clang/tools/libclang/Indexing.cpp index 598dbce7b65..6b9abbcf03b 100644 --- a/clang/tools/libclang/Indexing.cpp +++ b/clang/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(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) { -- cgit v1.2.3