diff options
Diffstat (limited to 'clang/lib/Index/IndexingContext.h')
-rw-r--r-- | clang/lib/Index/IndexingContext.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/clang/lib/Index/IndexingContext.h b/clang/lib/Index/IndexingContext.h index 626d81f003e9..da6ec74b6e74 100644 --- a/clang/lib/Index/IndexingContext.h +++ b/clang/lib/Index/IndexingContext.h @@ -68,20 +68,18 @@ public: static bool isTemplateImplicitInstantiation(const Decl *D); bool handleDecl(const Decl *D, SymbolRoleSet Roles = SymbolRoleSet(), - ArrayRef<SymbolRelation> Relations = None); + ArrayRef<SymbolRelation> Relations = std::nullopt); bool handleDecl(const Decl *D, SourceLocation Loc, SymbolRoleSet Roles = SymbolRoleSet(), - ArrayRef<SymbolRelation> Relations = None, + ArrayRef<SymbolRelation> Relations = std::nullopt, const DeclContext *DC = nullptr); bool handleReference(const NamedDecl *D, SourceLocation Loc, - const NamedDecl *Parent, - const DeclContext *DC, + const NamedDecl *Parent, const DeclContext *DC, SymbolRoleSet Roles = SymbolRoleSet(), - ArrayRef<SymbolRelation> Relations = None, - const Expr *RefE = nullptr, - const Decl *RefD = nullptr); + ArrayRef<SymbolRelation> Relations = std::nullopt, + const Expr *RefE = nullptr, const Decl *RefD = nullptr); void handleMacroDefined(const IdentifierInfo &Name, SourceLocation Loc, const MacroInfo &MI); @@ -97,7 +95,7 @@ public: bool indexDecl(const Decl *D); void indexTagDecl(const TagDecl *D, - ArrayRef<SymbolRelation> Relations = None); + ArrayRef<SymbolRelation> Relations = std::nullopt); void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent, const DeclContext *DC = nullptr, |