Skip to content

Commit b0d42ad

Browse files
committed
Adapt llvmorg-10-init-12036-g3b9715cb2193: handleDeclOccurence -> handleDeclOccurrence
1 parent a858567 commit b0d42ad

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/indexer.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,12 @@ class IndexDataConsumer : public index::IndexDataConsumer {
678678
SourceManager &SM = Ctx.getSourceManager();
679679
(void)param.ConsumeFile(*SM.getFileEntryForID(SM.getMainFileID()));
680680
}
681-
bool handleDeclOccurence(const Decl *D, index::SymbolRoleSet Roles,
682-
ArrayRef<index::SymbolRelation> Relations,
683-
SourceLocation Loc, ASTNodeInfo ASTNode) override {
681+
#if LLVM_VERSION_MAJOR < 10 // llvmorg-10-init-12036-g3b9715cb219
682+
# define handleDeclOccurrence handleDeclOccurence
683+
#endif
684+
bool handleDeclOccurrence(const Decl *D, index::SymbolRoleSet Roles,
685+
ArrayRef<index::SymbolRelation> Relations,
686+
SourceLocation Loc, ASTNodeInfo ASTNode) override {
684687
if (!param.no_linkage) {
685688
if (auto *ND = dyn_cast<NamedDecl>(D); ND && ND->hasLinkage())
686689
;

0 commit comments

Comments
 (0)