@@ -179,7 +179,7 @@ class SDKContext {
179179 CheckerOptions Opts;
180180 std::vector<BreakingAttributeInfo> BreakingAttrs;
181181 // The common version of two ABI/API descriptors under comparison.
182- llvm::Optional <uint8_t > CommonVersion;
182+ std::optional <uint8_t > CommonVersion;
183183
184184public:
185185 // Define the set of known identifiers.
@@ -232,7 +232,7 @@ class SDKContext {
232232 const CheckerOptions &getOpts () const { return Opts; }
233233 bool shouldIgnore (Decl *D, const Decl* Parent = nullptr ) const ;
234234 ArrayRef<BreakingAttributeInfo> getBreakingAttributeInfo () const { return BreakingAttrs; }
235- llvm::Optional <uint8_t > getFixedBinaryOrder (ValueDecl *VD) const ;
235+ std::optional <uint8_t > getFixedBinaryOrder (ValueDecl *VD) const ;
236236
237237 CompilerInstance &newCompilerInstance () {
238238 CIs.emplace_back (new CompilerInstance ());
@@ -364,7 +364,7 @@ class SDKNodeDecl: public SDKNode {
364364 // In ABI mode, this field is populated as a user-friendly version of GenericSig.
365365 // Diagnostic preferes the sugared versions if they differ as well.
366366 StringRef SugaredGenericSig;
367- llvm::Optional <uint8_t > FixedBinaryOrder;
367+ std::optional <uint8_t > FixedBinaryOrder;
368368 PlatformIntroVersion introVersions;
369369 StringRef ObjCName;
370370
@@ -446,7 +446,7 @@ class SDKNodeRoot: public SDKNode {
446446 ArrayRef<SDKNodeDecl*> getDescendantsByUsr (StringRef Usr) {
447447 return DescendantDeclTable[Usr].getArrayRef ();
448448 }
449- llvm::Optional <StringRef> getSingleModuleName () const ;
449+ std::optional <StringRef> getSingleModuleName () const ;
450450};
451451
452452class SDKNodeType : public SDKNode {
@@ -588,11 +588,11 @@ class SDKNodeDeclType: public SDKNodeDecl {
588588 return InheritsConvenienceInitializers;
589589 };
590590
591- llvm::Optional <SDKNodeDeclType *> getSuperclass () const ;
591+ std::optional <SDKNodeDeclType *> getSuperclass () const ;
592592
593593 // / Finding the node through all children, including the inherited ones,
594594 // / whose printed name matches with the given name.
595- llvm::Optional <SDKNodeDecl *> lookupChildByPrintedName (StringRef Name) const ;
595+ std::optional <SDKNodeDecl *> lookupChildByPrintedName (StringRef Name) const ;
596596 SDKNodeType *getRawValueType () const ;
597597 bool isConformingTo (KnownProtocolKind Kind) const ;
598598 void jsonize (json::Output &out) override ;
@@ -686,7 +686,7 @@ class SDKNodeDeclMacro : public SDKNodeDecl {
686686class SDKNodeDeclAbstractFunc : public SDKNodeDecl {
687687 bool IsThrowing;
688688 bool ReqNewWitnessTableEntry;
689- llvm::Optional <uint8_t > SelfIndex;
689+ std::optional <uint8_t > SelfIndex;
690690
691691protected:
692692 SDKNodeDeclAbstractFunc (SDKNodeInitInfo Info, SDKNodeKind Kind);
@@ -695,7 +695,7 @@ class SDKNodeDeclAbstractFunc : public SDKNodeDecl {
695695 bool isThrowing () const { return IsThrowing; }
696696 bool reqNewWitnessTableEntry () const { return ReqNewWitnessTableEntry; }
697697 uint8_t getSelfIndex () const { return SelfIndex.value (); }
698- llvm::Optional <uint8_t > getSelfIndexOptional () const { return SelfIndex; }
698+ std::optional <uint8_t > getSelfIndexOptional () const { return SelfIndex; }
699699 bool hasSelfIndex () const { return SelfIndex.has_value (); }
700700 static bool classof (const SDKNode *N);
701701 virtual void jsonize (json::Output &out) override ;
0 commit comments