Source ranges for named cast diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58570 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h
index 4acb954..7de21a8 100644
--- a/lib/Sema/Sema.h
+++ b/lib/Sema/Sema.h
@@ -713,12 +713,16 @@
private:
// Helpers for ActOnCXXCasts
- void CheckConstCast(SourceLocation OpLoc, Expr *&SrcExpr, QualType DestType);
- void CheckReinterpretCast(SourceLocation OpLoc, Expr *&SrcExpr,
- QualType DestType);
- void CheckStaticCast(SourceLocation OpLoc, Expr *&SrcExpr, QualType DestType);
- void CheckDynamicCast(SourceLocation OpLoc, Expr *&SrcExpr,
- QualType DestType, const SourceRange &DestRange);
+ void CheckConstCast(Expr *&SrcExpr, QualType DestType,
+ const SourceRange &OpRange, const SourceRange &DestRange);
+ void CheckReinterpretCast(Expr *&SrcExpr, QualType DestType,
+ const SourceRange &OpRange,
+ const SourceRange &DestRange);
+ void CheckStaticCast(Expr *&SrcExpr, QualType DestType,
+ const SourceRange &OpRange);
+ void CheckDynamicCast(Expr *&SrcExpr, QualType DestType,
+ const SourceRange &OpRange,
+ const SourceRange &DestRange);
bool CastsAwayConstness(QualType SrcType, QualType DestType);
bool IsStaticReferenceDowncast(Expr *SrcExpr, QualType DestType);
bool IsStaticPointerDowncast(QualType SrcType, QualType DestType);