@@ -878,7 +878,7 @@ class CXXTypeidExpr : public Expr {
878878 // / object. This is not a strong guarantee.
879879 bool isMostDerived (const ASTContext &Context) const ;
880880
881- bool isTypeOperand () const { return Operand. is <TypeSourceInfo *>(); }
881+ bool isTypeOperand () const { return isa <TypeSourceInfo *>(Operand ); }
882882
883883 // / Retrieves the type operand of this typeid() expression after
884884 // / various required adjustments (removing reference types, cv-qualifiers).
@@ -887,11 +887,11 @@ class CXXTypeidExpr : public Expr {
887887 // / Retrieve source information for the type operand.
888888 TypeSourceInfo *getTypeOperandSourceInfo () const {
889889 assert (isTypeOperand () && " Cannot call getTypeOperand for typeid(expr)" );
890- return Operand. get <TypeSourceInfo *>();
890+ return cast <TypeSourceInfo *>(Operand );
891891 }
892892 Expr *getExprOperand () const {
893893 assert (!isTypeOperand () && " Cannot call getExprOperand for typeid(type)" );
894- return static_cast <Expr*>(Operand. get <Stmt *>());
894+ return static_cast <Expr *>(cast <Stmt *>(Operand ));
895895 }
896896
897897 SourceLocation getBeginLoc () const LLVM_READONLY { return Range.getBegin (); }
@@ -1093,7 +1093,7 @@ class CXXUuidofExpr : public Expr {
10931093 Operand = (TypeSourceInfo*)nullptr ;
10941094 }
10951095
1096- bool isTypeOperand () const { return Operand. is <TypeSourceInfo *>(); }
1096+ bool isTypeOperand () const { return isa <TypeSourceInfo *>(Operand ); }
10971097
10981098 // / Retrieves the type operand of this __uuidof() expression after
10991099 // / various required adjustments (removing reference types, cv-qualifiers).
@@ -1102,11 +1102,11 @@ class CXXUuidofExpr : public Expr {
11021102 // / Retrieve source information for the type operand.
11031103 TypeSourceInfo *getTypeOperandSourceInfo () const {
11041104 assert (isTypeOperand () && " Cannot call getTypeOperand for __uuidof(expr)" );
1105- return Operand. get <TypeSourceInfo *>();
1105+ return cast <TypeSourceInfo *>(Operand );
11061106 }
11071107 Expr *getExprOperand () const {
11081108 assert (!isTypeOperand () && " Cannot call getExprOperand for __uuidof(type)" );
1109- return static_cast <Expr*>(Operand. get <Stmt *>());
1109+ return static_cast <Expr *>(cast <Stmt *>(Operand ));
11101110 }
11111111
11121112 MSGuidDecl *getGuidDecl () const { return Guid; }
@@ -4750,24 +4750,24 @@ class MaterializeTemporaryExpr : public Expr {
47504750 // / be materialized into a glvalue.
47514751 Expr *getSubExpr () const {
47524752 return cast<Expr>(
4753- State. is <Stmt *>()
4754- ? State. get <Stmt *>()
4755- : State. get <LifetimeExtendedTemporaryDecl *>()->getTemporaryExpr ());
4753+ isa <Stmt *>(State )
4754+ ? cast <Stmt *>(State )
4755+ : cast <LifetimeExtendedTemporaryDecl *>(State )->getTemporaryExpr ());
47564756 }
47574757
47584758 // / Retrieve the storage duration for the materialized temporary.
47594759 StorageDuration getStorageDuration () const {
4760- return State. is <Stmt *>() ? SD_FullExpression
4761- : State. get <LifetimeExtendedTemporaryDecl *>()
4760+ return isa <Stmt *>(State ) ? SD_FullExpression
4761+ : cast <LifetimeExtendedTemporaryDecl *>(State )
47624762 ->getStorageDuration ();
47634763 }
47644764
47654765 // / Get the storage for the constant value of a materialized temporary
47664766 // / of static storage duration.
47674767 APValue *getOrCreateValue (bool MayCreate) const {
4768- assert (State. is <LifetimeExtendedTemporaryDecl *>() &&
4768+ assert (isa <LifetimeExtendedTemporaryDecl *>(State ) &&
47694769 " the temporary has not been lifetime extended" );
4770- return State. get <LifetimeExtendedTemporaryDecl *>()->getOrCreateValue (
4770+ return cast <LifetimeExtendedTemporaryDecl *>(State )->getOrCreateValue (
47714771 MayCreate);
47724772 }
47734773
@@ -4782,8 +4782,8 @@ class MaterializeTemporaryExpr : public Expr {
47824782 // / Get the declaration which triggered the lifetime-extension of this
47834783 // / temporary, if any.
47844784 ValueDecl *getExtendingDecl () {
4785- return State. is <Stmt *>() ? nullptr
4786- : State. get <LifetimeExtendedTemporaryDecl *>()
4785+ return isa <Stmt *>(State ) ? nullptr
4786+ : cast <LifetimeExtendedTemporaryDecl *>(State )
47874787 ->getExtendingDecl ();
47884788 }
47894789 const ValueDecl *getExtendingDecl () const {
@@ -4793,8 +4793,8 @@ class MaterializeTemporaryExpr : public Expr {
47934793 void setExtendingDecl (ValueDecl *ExtendedBy, unsigned ManglingNumber);
47944794
47954795 unsigned getManglingNumber () const {
4796- return State. is <Stmt *>() ? 0
4797- : State. get <LifetimeExtendedTemporaryDecl *>()
4796+ return isa <Stmt *>(State ) ? 0
4797+ : cast <LifetimeExtendedTemporaryDecl *>(State )
47984798 ->getManglingNumber ();
47994799 }
48004800
@@ -4820,17 +4820,17 @@ class MaterializeTemporaryExpr : public Expr {
48204820
48214821 // Iterators
48224822 child_range children () {
4823- return State. is <Stmt *>()
4823+ return isa <Stmt *>(State )
48244824 ? child_range (State.getAddrOfPtr1 (), State.getAddrOfPtr1 () + 1 )
4825- : State. get <LifetimeExtendedTemporaryDecl *>()->childrenExpr ();
4825+ : cast <LifetimeExtendedTemporaryDecl *>(State )->childrenExpr ();
48264826 }
48274827
48284828 const_child_range children () const {
4829- return State. is <Stmt *>()
4829+ return isa <Stmt *>(State )
48304830 ? const_child_range (State.getAddrOfPtr1 (),
48314831 State.getAddrOfPtr1 () + 1 )
48324832 : const_cast <const LifetimeExtendedTemporaryDecl *>(
4833- State. get <LifetimeExtendedTemporaryDecl *>())
4833+ cast <LifetimeExtendedTemporaryDecl *>(State ))
48344834 ->childrenExpr ();
48354835 }
48364836};
0 commit comments