зеркало из https://github.com/microsoft/clang-1.git
CXXNamedCastExpr is actually an abstract expression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101994 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
2b003fd276
Коммит
d8383d45e4
|
@ -1679,7 +1679,7 @@ public:
|
|||
|
||||
static bool classof(const Stmt *T) {
|
||||
StmtClass SC = T->getStmtClass();
|
||||
if (SC >= CXXNamedCastExprClass && SC <= CXXFunctionalCastExprClass)
|
||||
if (SC >= CXXStaticCastExprClass && SC <= CXXFunctionalCastExprClass)
|
||||
return true;
|
||||
|
||||
if (SC >= ImplicitCastExprClass && SC <= CStyleCastExprClass)
|
||||
|
@ -1783,7 +1783,7 @@ public:
|
|||
StmtClass SC = T->getStmtClass();
|
||||
if (SC >= CStyleCastExprClass && SC <= CStyleCastExprClass)
|
||||
return true;
|
||||
if (SC >= CXXNamedCastExprClass && SC <= CXXFunctionalCastExprClass)
|
||||
if (SC >= CXXStaticCastExprClass && SC <= CXXFunctionalCastExprClass)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
|
|
@ -137,7 +137,6 @@ public:
|
|||
}
|
||||
static bool classof(const Stmt *T) {
|
||||
switch (T->getStmtClass()) {
|
||||
case CXXNamedCastExprClass:
|
||||
case CXXStaticCastExprClass:
|
||||
case CXXDynamicCastExprClass:
|
||||
case CXXReinterpretCastExprClass:
|
||||
|
|
|
@ -107,7 +107,7 @@ EXPR(GNUNullExpr , Expr)
|
|||
// C++ Expressions.
|
||||
EXPR(CXXOperatorCallExpr , CallExpr)
|
||||
EXPR(CXXMemberCallExpr , CallExpr)
|
||||
EXPR(CXXNamedCastExpr , ExplicitCastExpr)
|
||||
ABSTRACT_EXPR(CXXNamedCastExpr , ExplicitCastExpr)
|
||||
EXPR(CXXStaticCastExpr , CXXNamedCastExpr)
|
||||
EXPR(CXXDynamicCastExpr , CXXNamedCastExpr)
|
||||
EXPR(CXXReinterpretCastExpr , CXXNamedCastExpr)
|
||||
|
|
|
@ -1999,7 +1999,6 @@ static ICEDiag CheckICE(const Expr* E, ASTContext &Ctx) {
|
|||
case Expr::ImplicitCastExprClass:
|
||||
case Expr::CStyleCastExprClass:
|
||||
case Expr::CXXFunctionalCastExprClass:
|
||||
case Expr::CXXNamedCastExprClass:
|
||||
case Expr::CXXStaticCastExprClass:
|
||||
case Expr::CXXReinterpretCastExprClass:
|
||||
case Expr::CXXConstCastExprClass: {
|
||||
|
|
|
@ -591,7 +591,6 @@ void GRExprEngine::Visit(Stmt* S, ExplodedNode* Pred, ExplodedNodeSet& Dst) {
|
|||
case Stmt::CXXDefaultArgExprClass:
|
||||
case Stmt::CXXDependentScopeMemberExprClass:
|
||||
case Stmt::CXXExprWithTemporariesClass:
|
||||
case Stmt::CXXNamedCastExprClass:
|
||||
case Stmt::CXXNullPtrLiteralExprClass:
|
||||
case Stmt::CXXPseudoDestructorExprClass:
|
||||
case Stmt::CXXTemporaryObjectExprClass:
|
||||
|
|
|
@ -338,6 +338,7 @@ public:
|
|||
QualType ObjectType);
|
||||
|
||||
OwningStmtResult TransformCompoundStmt(CompoundStmt *S, bool IsStmtExpr);
|
||||
OwningExprResult TransformCXXNamedCastExpr(CXXNamedCastExpr *E);
|
||||
|
||||
#define STMT(Node, Parent) \
|
||||
OwningStmtResult Transform##Node(Node *S);
|
||||
|
|
|
@ -160,7 +160,6 @@ CXCursor cxcursor::MakeCXCursor(Stmt *S, Decl *Parent, ASTUnit *TU) {
|
|||
case Stmt::TypesCompatibleExprClass:
|
||||
case Stmt::ChooseExprClass:
|
||||
case Stmt::GNUNullExprClass:
|
||||
case Stmt::CXXNamedCastExprClass:
|
||||
case Stmt::CXXStaticCastExprClass:
|
||||
case Stmt::CXXDynamicCastExprClass:
|
||||
case Stmt::CXXReinterpretCastExprClass:
|
||||
|
|
Загрузка…
Ссылка в новой задаче