mirror of
https://github.com/MaskRay/ccls.git
synced 2025-06-07 08:44:55 +00:00
Adapt llvmorg-10-init-12036-g3b9715cb2193: handleDeclOccurence -> handleDeclOccurrence
This commit is contained in:
parent
cef0203484
commit
86e340caf0
@ -678,10 +678,13 @@ public:
|
|||||||
public:
|
public:
|
||||||
IndexDataConsumer(IndexParam ¶m) : param(param) {}
|
IndexDataConsumer(IndexParam ¶m) : param(param) {}
|
||||||
void initialize(ASTContext &ctx) override { this->ctx = param.ctx = &ctx; }
|
void initialize(ASTContext &ctx) override { this->ctx = param.ctx = &ctx; }
|
||||||
bool handleDeclOccurence(const Decl *d, index::SymbolRoleSet roles,
|
#if LLVM_VERSION_MAJOR < 10 // llvmorg-10-init-12036-g3b9715cb219
|
||||||
ArrayRef<index::SymbolRelation> relations,
|
# define handleDeclOccurrence handleDeclOccurence
|
||||||
SourceLocation src_loc,
|
#endif
|
||||||
ASTNodeInfo ast_node) override {
|
bool handleDeclOccurrence(const Decl *d, index::SymbolRoleSet roles,
|
||||||
|
ArrayRef<index::SymbolRelation> relations,
|
||||||
|
SourceLocation src_loc,
|
||||||
|
ASTNodeInfo ast_node) override {
|
||||||
if (!param.no_linkage) {
|
if (!param.no_linkage) {
|
||||||
if (auto *nd = dyn_cast<NamedDecl>(d); nd && nd->hasLinkage())
|
if (auto *nd = dyn_cast<NamedDecl>(d); nd && nd->hasLinkage())
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user