Lines Matching refs:SourceLoc

318 void NarrowingConversionsCheck::diagNarrowType(SourceLocation SourceLoc,  in diagNarrowType()  argument
321 diag(SourceLoc, "narrowing conversion from %0 to %1") in diagNarrowType()
326 SourceLocation SourceLoc, const Expr &Lhs, const Expr &Rhs) { in diagNarrowTypeToSignedInt() argument
327 diag(SourceLoc, "narrowing conversion from %0 to signed type %1 is " in diagNarrowTypeToSignedInt()
333 SourceLocation SourceLoc, const Expr &Lhs, const Expr &Rhs, in diagNarrowIntegerConstant() argument
335 diag(SourceLoc, in diagNarrowIntegerConstant()
342 SourceLocation SourceLoc, const Expr &Lhs, const Expr &Rhs, in diagNarrowIntegerConstantToSignedInt() argument
344 diag(SourceLoc, "narrowing conversion from constant value %0 of type %1 " in diagNarrowIntegerConstantToSignedInt()
350 void NarrowingConversionsCheck::diagNarrowConstant(SourceLocation SourceLoc, in diagNarrowConstant() argument
353 diag(SourceLoc, "narrowing conversion from constant %0 to %1") in diagNarrowConstant()
357 void NarrowingConversionsCheck::diagConstantCast(SourceLocation SourceLoc, in diagConstantCast() argument
360 diag(SourceLoc, "constant value should be of type of type %0 instead of %1") in diagConstantCast()
365 const ASTContext &Context, SourceLocation SourceLoc, const Expr &Lhs, in diagNarrowTypeOrConstant() argument
369 return diagNarrowIntegerConstant(SourceLoc, Lhs, Rhs, Constant.getInt()); in diagNarrowTypeOrConstant()
371 return diagNarrowConstant(SourceLoc, Lhs, Rhs); in diagNarrowTypeOrConstant()
372 return diagNarrowType(SourceLoc, Lhs, Rhs); in diagNarrowTypeOrConstant()
376 SourceLocation SourceLoc, in handleIntegralCast() argument
402 diagNarrowIntegerConstantToSignedInt(SourceLoc, Lhs, Rhs, in handleIntegralCast()
408 diagNarrowTypeToSignedInt(SourceLoc, Lhs, Rhs); in handleIntegralCast()
413 const ASTContext &Context, SourceLocation SourceLoc, const Expr &Lhs, in handleIntegralToBoolean() argument
423 const ASTContext &Context, SourceLocation SourceLoc, const Expr &Lhs, in handleIntegralToFloating() argument
430 diagNarrowIntegerConstant(SourceLoc, Lhs, Rhs, IntegerConstant); in handleIntegralToFloating()
438 diagNarrowType(SourceLoc, Lhs, Rhs); in handleIntegralToFloating()
443 const ASTContext &Context, SourceLocation SourceLoc, const Expr &Lhs, in handleFloatingToIntegral() argument
448 return diagNarrowConstant(SourceLoc, Lhs, Rhs); in handleFloatingToIntegral()
451 return diagConstantCast(SourceLoc, Lhs, Rhs); in handleFloatingToIntegral()
460 diagNarrowType(SourceLoc, Lhs, Rhs); // Assumed always lossy. in handleFloatingToIntegral()
464 const ASTContext &Context, SourceLocation SourceLoc, const Expr &Lhs, in handleFloatingToBoolean() argument
466 return diagNarrowTypeOrConstant(Context, SourceLoc, Lhs, Rhs); in handleFloatingToBoolean()
470 const ASTContext &Context, SourceLocation SourceLoc, const Expr &Lhs, in handleBooleanToSignedIntegral() argument
480 SourceLocation SourceLoc, in handleFloatingCast() argument
496 diagNarrowConstant(SourceLoc, Lhs, Rhs); in handleFloatingCast()
501 diagNarrowType(SourceLoc, Lhs, Rhs); in handleFloatingCast()
506 SourceLocation SourceLoc, in handleBinaryOperator() argument
516 return handleBooleanToSignedIntegral(Context, SourceLoc, Lhs, Rhs); in handleBinaryOperator()
518 return handleIntegralToBoolean(Context, SourceLoc, Lhs, Rhs); in handleBinaryOperator()
520 return handleIntegralToFloating(Context, SourceLoc, Lhs, Rhs); in handleBinaryOperator()
522 return handleIntegralCast(Context, SourceLoc, Lhs, Rhs); in handleBinaryOperator()
524 return handleFloatingToBoolean(Context, SourceLoc, Lhs, Rhs); in handleBinaryOperator()
526 return handleFloatingToIntegral(Context, SourceLoc, Lhs, Rhs); in handleBinaryOperator()
528 return handleFloatingCast(Context, SourceLoc, Lhs, Rhs); in handleBinaryOperator()
556 SourceLocation SourceLoc = Lhs.getExprLoc(); in handleImplicitCast() local
559 return handleBooleanToSignedIntegral(Context, SourceLoc, Lhs, Rhs); in handleImplicitCast()
561 return handleIntegralToBoolean(Context, SourceLoc, Lhs, Rhs); in handleImplicitCast()
563 return handleIntegralToFloating(Context, SourceLoc, Lhs, Rhs); in handleImplicitCast()
565 return handleIntegralCast(Context, SourceLoc, Lhs, Rhs); in handleImplicitCast()
567 return handleFloatingToBoolean(Context, SourceLoc, Lhs, Rhs); in handleImplicitCast()
569 return handleFloatingToIntegral(Context, SourceLoc, Lhs, Rhs); in handleImplicitCast()
571 return handleFloatingCast(Context, SourceLoc, Lhs, Rhs); in handleImplicitCast()