diff options
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index ba07a9c174e..ab5b7b0b009 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -231,6 +231,8 @@ public: bool Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg); bool Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg1, const std::string &Msg2); + bool Diag(SourceLocation Loc, unsigned DiagId, const std::string &Msg1, + const std::string &Msg2, const std::string &Msg3); /// More expressive diagnostic helpers for expressions (say that 6 times:-) bool Diag(SourceLocation Loc, unsigned DiagID, const SourceRange& R1); @@ -699,6 +701,13 @@ public: SourceLocation LParenLoc, ExprTy *E, SourceLocation RParenLoc); + // Helpers for ActOnCXXCasts + bool CastsAwayConstness(QualType SrcType, QualType DestType); + void CheckConstCast(SourceLocation OpLoc, Expr *&SrcExpr, QualType DestType); + void CheckReinterpretCast(SourceLocation OpLoc, Expr *&SrcExpr, + QualType DestType); + void CheckStaticCast(SourceLocation OpLoc, Expr *&SrcExpr, QualType DestType); + //// ActOnCXXThis - Parse 'this' pointer. virtual ExprResult ActOnCXXThis(SourceLocation ThisLoc); |

