aboutsummaryrefslogtreecommitdiffstats
path: root/include/clang/Index/IndexDataConsumer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Index/IndexDataConsumer.h')
-rw-r--r--include/clang/Index/IndexDataConsumer.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/include/clang/Index/IndexDataConsumer.h b/include/clang/Index/IndexDataConsumer.h
index bc1d86696df9..72747821bf54 100644
--- a/include/clang/Index/IndexDataConsumer.h
+++ b/include/clang/Index/IndexDataConsumer.h
@@ -32,7 +32,7 @@ public:
const DeclContext *ContainerDC;
};
- virtual ~IndexDataConsumer() {}
+ virtual ~IndexDataConsumer() = default;
virtual void initialize(ASTContext &Ctx) {}
@@ -41,12 +41,16 @@ public:
/// \returns true to continue indexing, or false to abort.
virtual bool handleDeclOccurence(const Decl *D, SymbolRoleSet Roles,
ArrayRef<SymbolRelation> Relations,
- SourceLocation Loc, ASTNodeInfo ASTNode);
+ SourceLocation Loc, ASTNodeInfo ASTNode) {
+ return true;
+ }
/// \returns true to continue indexing, or false to abort.
virtual bool handleMacroOccurence(const IdentifierInfo *Name,
const MacroInfo *MI, SymbolRoleSet Roles,
- SourceLocation Loc);
+ SourceLocation Loc) {
+ return true;
+ }
/// \returns true to continue indexing, or false to abort.
///
@@ -54,8 +58,10 @@ public:
/// For "@import MyMod.SubMod", there will be a call for 'MyMod' with the
/// 'reference' role, and a call for 'SubMod' with the 'declaration' role.
virtual bool handleModuleOccurence(const ImportDecl *ImportD,
- const Module *Mod,
- SymbolRoleSet Roles, SourceLocation Loc);
+ const Module *Mod, SymbolRoleSet Roles,
+ SourceLocation Loc) {
+ return true;
+ }
virtual void finish() {}
};