diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-07-29 13:50:23 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-07-29 13:50:23 +0000 |
commit | ef0cb8e62d090ad88a01ca9fa89e48d7416f0ac7 (patch) | |
tree | 58b7e8f12a33c784db0cf35a0f810f546d768b92 /lib/Sema/Sema.h | |
parent | d9b401c0856fb2194855e8ee5f80908b91b598c4 (diff) |
Make functional-style casts emit correct messages, and fix a crash-on-invalid.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.h')
-rw-r--r-- | lib/Sema/Sema.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h index 6737175fcf..79ea3e1303 100644 --- a/lib/Sema/Sema.h +++ b/lib/Sema/Sema.h @@ -3171,8 +3171,9 @@ public: bool ForceRValue = false); /// CheckCastTypes - Check type constraints for casting between types under - /// C semantics. - bool CheckCastTypes(SourceRange TyRange, QualType CastTy, Expr *&CastExpr); + /// C semantics, or forward to CXXCheckCStyleCast in C++. + bool CheckCastTypes(SourceRange TyRange, QualType CastTy, Expr *&CastExpr, + bool FunctionalStyle = false); // CheckVectorCast - check type constraints for vectors. // Since vectors are an extension, there are no C standard reference for this. @@ -3189,7 +3190,8 @@ public: /// CXXCheckCStyleCast - Check constraints of a C-style or function-style /// cast under C++ semantics. - bool CXXCheckCStyleCast(SourceRange R, QualType CastTy, Expr *&CastExpr); + bool CXXCheckCStyleCast(SourceRange R, QualType CastTy, Expr *&CastExpr, + bool FunctionalStyle); /// CheckMessageArgumentTypes - Check types in an Obj-C message send. /// \param Method - May be null. |