mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Adapt llvmorg-10-init-12036-g3b9715cb2193: handleDeclOccurence -> handleDeclOccurrence
This commit is contained in:
parent
a858567686
commit
b0d42ad8f2
@ -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<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())
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user