From 9683b1b494fac399e4b15ef25b3ab04591d92829 Mon Sep 17 00:00:00 2001 From: zhiruili Date: Thu, 26 Mar 2020 14:58:02 +0800 Subject: [PATCH] fix: compile error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit handleDeclOccurrence(const clang::Decl*, clang::index::SymbolRoleSet, llvm::ArrayRef, clang::SourceLocation, clang::index::IndexDataConsumer::ASTNodeInfo)’ marked ‘override’, but does not override bool handleDeclOccurrence(const Decl *d, index::SymbolRoleSet roles, ^~~~~~~~~~~~~~~~~~~~ --- src/indexer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/indexer.cc b/src/indexer.cc index 4c7a262c..5b5f7f42 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -685,7 +685,7 @@ public: bool handleDeclOccurrence(const Decl *d, index::SymbolRoleSet roles, ArrayRef relations, SourceLocation src_loc, - ASTNodeInfo ast_node) override { + ASTNodeInfo ast_node) { if (!param.no_linkage) { if (auto *nd = dyn_cast(d); nd && nd->hasLinkage()) ;