]> granicus.if.org Git - clang/commitdiff
CXXNamedCastExpr is actually an abstract expression.
authorZhongxing Xu <xuzhongxing@gmail.com>
Wed, 21 Apr 2010 06:32:25 +0000 (06:32 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Wed, 21 Apr 2010 06:32:25 +0000 (06:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101994 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Expr.h
include/clang/AST/ExprCXX.h
include/clang/AST/StmtNodes.def
lib/AST/Expr.cpp
lib/Checker/GRExprEngine.cpp
lib/Sema/TreeTransform.h
tools/CIndex/CXCursor.cpp

index 88e87812d197d7ab5e2433a2c15fe843e260f3ee..a2f5fd3ff9b2460fee142338e456e6eb5786da09 100644 (file)
@@ -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;
index 6e2e832e3542dbd896a468b20ef97483ed6f0be9..7f7f0858a1414f7b7e1bf18f1afd30115ced338f 100644 (file)
@@ -137,7 +137,6 @@ public:
   }
   static bool classof(const Stmt *T) {
     switch (T->getStmtClass()) {
-    case CXXNamedCastExprClass:
     case CXXStaticCastExprClass:
     case CXXDynamicCastExprClass:
     case CXXReinterpretCastExprClass:
index ec6149e55f11c841f249e47b437b6c0d5aa622f0..4e80ecbad56202867da57a3f5dc13a6483af567a 100644 (file)
@@ -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)
index 71e8d072e493971f3b405d4dad207802ba86dcd6..e635b65841d90732c0656574d84e8b02a8bcb772 100644 (file)
@@ -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: {
index 41e52436ce9b8977ee3eb79d20f40d5d23f35b2d..376f9fcd87c62091fc82df27cc15406c5ac75af7 100644 (file)
@@ -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:
index ba714e886779285f20db4b4819d05268793e6ac6..ca9198490e159b66c1bddb1153731ae9d9ebf5d6 100644 (file)
@@ -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);
index 036214e75f4fd4ac1df362d49cb48ff3fc7cc456..3bc5d01fbada6907fc64bb5b2ffd6463e0292dac 100644 (file)
@@ -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: