diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-08-16 20:27:34 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-08-16 20:27:34 +0000 |
commit | 2ade39061c84dce0fd050aa6272e17081e54980f (patch) | |
tree | 0dc5afa6d6256e381ea82b5cf57bf19902f8f170 /clang/lib/Sema/Sema.h | |
parent | 69af9eebd7c0bbc2c5e751557815246c7db9c5b3 (diff) | |
download | bcm5719-llvm-2ade39061c84dce0fd050aa6272e17081e54980f.tar.gz bcm5719-llvm-2ade39061c84dce0fd050aa6272e17081e54980f.zip |
Move the type checking that Sema::ActOnCastExpr does into a new Sema::CheckCastTypes function so that it can be reused.
llvm-svn: 54852
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r-- | clang/lib/Sema/Sema.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 98f98aa3536..ed010858974 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -869,6 +869,9 @@ private: StringLiteral *IsStringLiteralInit(Expr *Init, QualType DeclType); bool CheckStringLiteralInit(StringLiteral *strLiteral, QualType &DeclT); + + /// CheckCastTypes - Check type constraints for casting between types. + bool CheckCastTypes(SourceRange TyRange, QualType CastTy, Expr *CastExpr); // CheckVectorCast - check type constraints for vectors. // Since vectors are an extension, there are no C standard reference for this. |