diff --git a/src/indexer.cc b/src/indexer.cc index e74843e3c..b491fcfaa 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -678,9 +678,12 @@ class IndexDataConsumer : public index::IndexDataConsumer { SourceManager &SM = Ctx.getSourceManager(); (void)param.ConsumeFile(*SM.getFileEntryForID(SM.getMainFileID())); } - bool handleDeclOccurence(const Decl *D, index::SymbolRoleSet Roles, - ArrayRef Relations, - SourceLocation Loc, ASTNodeInfo ASTNode) override { +#if LLVM_VERSION_MAJOR < 10 // llvmorg-10-init-12036-g3b9715cb219 +# define handleDeclOccurrence handleDeclOccurence +#endif + bool handleDeclOccurrence(const Decl *D, index::SymbolRoleSet Roles, + ArrayRef Relations, + SourceLocation Loc, ASTNodeInfo ASTNode) override { if (!param.no_linkage) { if (auto *ND = dyn_cast(D); ND && ND->hasLinkage()) ;