fix: compile error

handleDeclOccurrence(const clang::Decl*, clang::index::SymbolRoleSet, llvm::ArrayRef<clang::index::SymbolRelation>, clang::SourceLocation, clang::index::IndexDataConsumer::ASTNodeInfo)’ marked ‘override’, but does not override
   bool handleDeclOccurrence(const Decl *d, index::SymbolRoleSet roles,
        ^~~~~~~~~~~~~~~~~~~~
This commit is contained in:
zhiruili 2020-03-26 14:58:02 +08:00
parent db12223081
commit 9683b1b494

View File

@ -685,7 +685,7 @@ public:
bool handleDeclOccurrence(const Decl *d, index::SymbolRoleSet roles,
ArrayRef<index::SymbolRelation> relations,
SourceLocation src_loc,
ASTNodeInfo ast_node) override {
ASTNodeInfo ast_node) {
if (!param.no_linkage) {
if (auto *nd = dyn_cast<NamedDecl>(d); nd && nd->hasLinkage())
;