[cfe-commits] r86994 - in /cfe/trunk: include/clang/AST/Expr.h lib/AST/Expr.cpp
Anders Carlsson
andersca at mac.com
Thu Nov 12 08:43:42 PST 2009
Author: andersca
Date: Thu Nov 12 10:43:42 2009
New Revision: 86994
URL: http://llvm.org/viewvc/llvm-project?rev=86994&view=rev
Log:
Add a CK_BaseToDerived cast kind.
Modified:
cfe/trunk/include/clang/AST/Expr.h
cfe/trunk/lib/AST/Expr.cpp
Modified: cfe/trunk/include/clang/AST/Expr.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=86994&r1=86993&r2=86994&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Thu Nov 12 10:43:42 2009
@@ -1519,6 +1519,9 @@
/// CK_NoOp - Used for const_cast.
CK_NoOp,
+ /// CK_BaseToDerived - Base to derived class casts.
+ CK_BaseToDerived,
+
/// CK_DerivedToBase - Derived to base class casts.
CK_DerivedToBase,
Modified: cfe/trunk/lib/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Expr.cpp?rev=86994&r1=86993&r2=86994&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Expr.cpp (original)
+++ cfe/trunk/lib/AST/Expr.cpp Thu Nov 12 10:43:42 2009
@@ -490,6 +490,8 @@
return "BitCast";
case CastExpr::CK_NoOp:
return "NoOp";
+ case CastExpr::CK_BaseToDerived:
+ return "BaseToDerived";
case CastExpr::CK_DerivedToBase:
return "DerivedToBase";
case CastExpr::CK_Dynamic:
More information about the cfe-commits
mailing list