@@ -32,7 +32,7 @@ class IndexDataConsumer {
32
32
const DeclContext *ContainerDC;
33
33
};
34
34
35
- virtual ~IndexDataConsumer () {}
35
+ virtual ~IndexDataConsumer () = default ;
36
36
37
37
virtual void initialize (ASTContext &Ctx) {}
38
38
@@ -41,21 +41,27 @@ class IndexDataConsumer {
41
41
// / \returns true to continue indexing, or false to abort.
42
42
virtual bool handleDeclOccurence (const Decl *D, SymbolRoleSet Roles,
43
43
ArrayRef<SymbolRelation> Relations,
44
- SourceLocation Loc, ASTNodeInfo ASTNode);
44
+ SourceLocation Loc, ASTNodeInfo ASTNode) {
45
+ return true ;
46
+ }
45
47
46
48
// / \returns true to continue indexing, or false to abort.
47
49
virtual bool handleMacroOccurence (const IdentifierInfo *Name,
48
50
const MacroInfo *MI, SymbolRoleSet Roles,
49
- SourceLocation Loc);
51
+ SourceLocation Loc) {
52
+ return true ;
53
+ }
50
54
51
55
// / \returns true to continue indexing, or false to abort.
52
56
// /
53
57
// / This will be called for each module reference in an import decl.
54
58
// / For "@import MyMod.SubMod", there will be a call for 'MyMod' with the
55
59
// / 'reference' role, and a call for 'SubMod' with the 'declaration' role.
56
60
virtual bool handleModuleOccurence (const ImportDecl *ImportD,
57
- const Module *Mod,
58
- SymbolRoleSet Roles, SourceLocation Loc);
61
+ const Module *Mod, SymbolRoleSet Roles,
62
+ SourceLocation Loc) {
63
+ return true ;
64
+ }
59
65
60
66
virtual void finish () {}
61
67
};
0 commit comments