Lines Matching refs:Loc
46 Location Loc = Data->Loc.acquire(); in handleTypeMismatchImpl() local
58 if (ignoreReport(Loc.getSourceLocation(), Opts, ET)) in handleTypeMismatchImpl()
62 if (Data->Loc.isInvalid()) { in handleTypeMismatchImpl()
64 Loc = FallbackLoc; in handleTypeMismatchImpl()
67 ScopedReport R(Opts, Loc, ET); in handleTypeMismatchImpl()
71 Diag(Loc, DL_Error, "%0 null pointer of type %1") in handleTypeMismatchImpl()
75 Diag(Loc, DL_Error, "%0 misaligned address %1 for type %3, " in handleTypeMismatchImpl()
81 Diag(Loc, DL_Error, "%0 address %1 with insufficient space " in handleTypeMismatchImpl()
110 SourceLocation Loc = Data->Loc.acquire(); in handleIntegerOverflowImpl() local
115 if (ignoreReport(Loc, Opts, ET)) in handleIntegerOverflowImpl()
118 ScopedReport R(Opts, Loc, ET); in handleIntegerOverflowImpl()
120 Diag(Loc, DL_Error, "%0 integer overflow: " in handleIntegerOverflowImpl()
144 SourceLocation Loc = Data->Loc.acquire(); in handleNegateOverflowImpl() local
149 if (ignoreReport(Loc, Opts, ET)) in handleNegateOverflowImpl()
152 ScopedReport R(Opts, Loc, ET); in handleNegateOverflowImpl()
155 Diag(Loc, DL_Error, in handleNegateOverflowImpl()
160 Diag(Loc, DL_Error, "negation of %0 cannot be represented in type %1") in handleNegateOverflowImpl()
178 SourceLocation Loc = Data->Loc.acquire(); in handleDivremOverflowImpl() local
190 if (ignoreReport(Loc, Opts, ET)) in handleDivremOverflowImpl()
193 ScopedReport R(Opts, Loc, ET); in handleDivremOverflowImpl()
197 Diag(Loc, DL_Error, "division of %0 by -1 cannot be represented in type %1") in handleDivremOverflowImpl()
201 Diag(Loc, DL_Error, "division by zero"); in handleDivremOverflowImpl()
222 SourceLocation Loc = Data->Loc.acquire(); in handleShiftOutOfBoundsImpl() local
233 if (ignoreReport(Loc, Opts, ET)) in handleShiftOutOfBoundsImpl()
236 ScopedReport R(Opts, Loc, ET); in handleShiftOutOfBoundsImpl()
240 Diag(Loc, DL_Error, "shift exponent %0 is negative") << RHSVal; in handleShiftOutOfBoundsImpl()
242 Diag(Loc, DL_Error, "shift exponent %0 is too large for %1-bit type %2") in handleShiftOutOfBoundsImpl()
246 Diag(Loc, DL_Error, "left shift of negative value %0") << LHSVal; in handleShiftOutOfBoundsImpl()
248 Diag(Loc, DL_Error, in handleShiftOutOfBoundsImpl()
271 SourceLocation Loc = Data->Loc.acquire(); in handleOutOfBoundsImpl() local
274 if (ignoreReport(Loc, Opts, ET)) in handleOutOfBoundsImpl()
277 ScopedReport R(Opts, Loc, ET); in handleOutOfBoundsImpl()
280 Diag(Loc, DL_Error, "index %0 out of bounds for type %1") in handleOutOfBoundsImpl()
298 ScopedReport R(Opts, Data->Loc, ErrorType::UnreachableCall); in handleBuiltinUnreachableImpl()
299 Diag(Data->Loc, DL_Error, "execution reached a __builtin_unreachable() call"); in handleBuiltinUnreachableImpl()
309 ScopedReport R(Opts, Data->Loc, ErrorType::MissingReturn); in handleMissingReturnImpl()
310 Diag(Data->Loc, DL_Error, in handleMissingReturnImpl()
323 SourceLocation Loc = Data->Loc.acquire(); in handleVLABoundNotPositive() local
326 if (ignoreReport(Loc, Opts, ET)) in handleVLABoundNotPositive()
329 ScopedReport R(Opts, Loc, ET); in handleVLABoundNotPositive()
331 Diag(Loc, DL_Error, "variable length array bound evaluates to " in handleVLABoundNotPositive()
369 Location Loc; in handleFloatCastOverflow() local
376 Loc = CallerLoc; in handleFloatCastOverflow()
381 SourceLocation SLoc = Data->Loc.acquire(); in handleFloatCastOverflow()
384 Loc = SLoc; in handleFloatCastOverflow()
389 ScopedReport R(Opts, Loc, ET); in handleFloatCastOverflow()
391 Diag(Loc, DL_Error, in handleFloatCastOverflow()
409 SourceLocation Loc = Data->Loc.acquire(); in handleLoadInvalidValue() local
416 if (ignoreReport(Loc, Opts, ET)) in handleLoadInvalidValue()
419 ScopedReport R(Opts, Loc, ET); in handleLoadInvalidValue()
421 Diag(Loc, DL_Error, in handleLoadInvalidValue()
441 SourceLocation CallLoc = Data->Loc.acquire(); in handleFunctionTypeMismatch()
475 SourceLocation Loc = Data->Loc.acquire(); in handleNonNullReturn() local
478 if (ignoreReport(Loc, Opts, ET)) in handleNonNullReturn()
481 ScopedReport R(Opts, Loc, ET); in handleNonNullReturn()
483 Diag(Loc, DL_Error, "null pointer returned from function declared to never " in handleNonNullReturn()
501 SourceLocation Loc = Data->Loc.acquire(); in handleNonNullArg() local
504 if (ignoreReport(Loc, Opts, ET)) in handleNonNullArg()
507 ScopedReport R(Opts, Loc, ET); in handleNonNullArg()
509 Diag(Loc, DL_Error, "null pointer passed as argument %0, which is declared to " in handleNonNullArg()
531 SourceLocation Loc = Data->Loc.acquire(); in handleCFIBadIcall() local
534 if (ignoreReport(Loc, Opts, ET)) in handleCFIBadIcall()
537 ScopedReport R(Opts, Loc, ET); in handleCFIBadIcall()
539 Diag(Loc, DL_Error, "control flow integrity check for type %0 failed during " in handleCFIBadIcall()