Skip to content

Commit

Permalink
Adapt llvmorg-10-init-12036-g3b9715cb2193: handleDeclOccurence -> han…
Browse files Browse the repository at this point in the history
…dleDeclOccurrence
  • Loading branch information
MaskRay committed Dec 17, 2019
1 parent a858567 commit b0d42ad
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/indexer.cc
Expand Up @@ -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<index::SymbolRelation> 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<index::SymbolRelation> Relations,
SourceLocation Loc, ASTNodeInfo ASTNode) override {
if (!param.no_linkage) {
if (auto *ND = dyn_cast<NamedDecl>(D); ND && ND->hasLinkage())
;
Expand Down

0 comments on commit b0d42ad

Please sign in to comment.