summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-08-16 20:27:34 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-08-16 20:27:34 +0000
commit2ade39061c84dce0fd050aa6272e17081e54980f (patch)
tree0dc5afa6d6256e381ea82b5cf57bf19902f8f170 /clang/lib/Sema/Sema.h
parent69af9eebd7c0bbc2c5e751557815246c7db9c5b3 (diff)
downloadbcm5719-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.h3
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.
OpenPOWER on IntegriCloud