@@ -167,7 +167,7 @@ enum class KnownFoundationEntity {
167167
168168// / Retrieve the Foundation entity kind for the given Objective-C
169169// / entity name.
170- Optional<KnownFoundationEntity> getKnownFoundationEntity (StringRef name);
170+ llvm:: Optional<KnownFoundationEntity> getKnownFoundationEntity (StringRef name);
171171
172172// / Retrieve the Swift name for the given Foundation entity, where
173173// / "NS" prefix stripping will apply under omit-needless-words.
@@ -337,7 +337,7 @@ class ASTContext final {
337337 unsigned NumTypoCorrections = 0 ;
338338
339339 // / Cached mapping from types to their associated tangent spaces.
340- llvm::DenseMap<Type, Optional<TangentSpace>> AutoDiffTangentSpaces;
340+ llvm::DenseMap<Type, llvm:: Optional<TangentSpace>> AutoDiffTangentSpaces;
341341
342342 // / A cache of derivative function types per configuration.
343343 llvm::DenseMap<SILAutoDiffDerivativeFunctionKey, CanSILFunctionType>
@@ -797,9 +797,9 @@ class ASTContext final {
797797 // /
798798 // / SIL analog of \c ASTContext::getClangFunctionType .
799799 const clang::Type *
800- getCanonicalClangFunctionType (
801- ArrayRef<SILParameterInfo> params, Optional<SILResultInfo> result,
802- SILFunctionType::Representation trueRep);
800+ getCanonicalClangFunctionType (ArrayRef<SILParameterInfo> params,
801+ llvm:: Optional<SILResultInfo> result,
802+ SILFunctionType::Representation trueRep);
803803
804804 // / Instantiates "Impl.Converter" if needed, then translate Swift generic
805805 // / substitutions to equivalent C++ types using \p templateParams and \p
@@ -1020,25 +1020,24 @@ class ASTContext final {
10201020
10211021 // / Retrieve the module dependencies for the module with the given name.
10221022 // /
1023- Optional<const ModuleDependencyInfo*> getModuleDependencies (
1024- StringRef moduleName,
1025- ModuleDependenciesCache &cache,
1023+ llvm::Optional<const ModuleDependencyInfo *> getModuleDependencies (
1024+ StringRef moduleName, ModuleDependenciesCache &cache,
10261025 InterfaceSubContextDelegate &delegate,
1027- bool optionalDependencyLookup = false ,
1028- bool isTestableImport = false ,
1029- llvm::Optional<std::pair<std::string, swift::ModuleDependencyKind>> dependencyOf = None);
1026+ bool optionalDependencyLookup = false , bool isTestableImport = false ,
1027+ llvm::Optional<std::pair<std::string, swift::ModuleDependencyKind>>
1028+ dependencyOf = llvm:: None);
10301029
10311030 // / Retrieve the module dependencies for the Clang module with the given name.
1032- Optional<const ModuleDependencyInfo*> getClangModuleDependencies (
1033- StringRef moduleName,
1034- ModuleDependenciesCache &cache,
1035- InterfaceSubContextDelegate &delegate);
1031+ llvm:: Optional<const ModuleDependencyInfo *>
1032+ getClangModuleDependencies ( StringRef moduleName,
1033+ ModuleDependenciesCache &cache,
1034+ InterfaceSubContextDelegate &delegate);
10361035
10371036 // / Retrieve the module dependencies for the Swift module with the given name.
1038- Optional<const ModuleDependencyInfo*> getSwiftModuleDependencies (
1039- StringRef moduleName,
1040- ModuleDependenciesCache &cache,
1041- InterfaceSubContextDelegate &delegate);
1037+ llvm:: Optional<const ModuleDependencyInfo *>
1038+ getSwiftModuleDependencies ( StringRef moduleName,
1039+ ModuleDependenciesCache &cache,
1040+ InterfaceSubContextDelegate &delegate);
10421041
10431042 // / Compute the extra implicit framework search paths on Apple platforms:
10441043 // / $SDKROOT/System/Library/Frameworks/ and $SDKROOT/Library/Frameworks/.
@@ -1496,7 +1495,7 @@ class ASTContext final {
14961495private:
14971496 friend Decl;
14981497
1499- Optional<ExternalSourceLocs *> getExternalSourceLocs (const Decl *D);
1498+ llvm:: Optional<ExternalSourceLocs *> getExternalSourceLocs (const Decl *D);
15001499 void setExternalSourceLocs (const Decl *D, ExternalSourceLocs *Locs);
15011500
15021501 friend TypeBase;
0 commit comments