From b0d42ad8f2ef22d3a42eee6e7534fc363c018440 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 16 Dec 2019 22:11:31 -0800 Subject: [PATCH] Adapt llvmorg-10-init-12036-g3b9715cb2193: handleDeclOccurence -> handleDeclOccurrence --- src/indexer.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/indexer.cc b/src/indexer.cc index e74843e3..b491fcfa 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -678,9 +678,12 @@ public: 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()) ;