File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments