Lines Matching refs:Opts
25 bool ignoreReport(SourceLocation SLoc, ReportOptions Opts, ErrorType ET) {
33 if (Opts.FromUnrecoverableHandler)
35 return SLoc.isDisabled() || IsPCSuppressed(ET, Opts.pc, SLoc.getFilename());
45 ReportOptions Opts) {
58 if (ignoreReport(Loc.getSourceLocation(), Opts, ET))
63 FallbackLoc.reset(getCallerLocation(Opts.pc));
67 ScopedReport R(Opts, Loc, ET);
96 handleTypeMismatchImpl(Data, Pointer, Opts);
101 handleTypeMismatchImpl(Data, Pointer, Opts);
109 ReportOptions Opts) {
115 if (ignoreReport(Loc, Opts, ET))
118 ScopedReport R(Opts, Loc, ET);
130 handleIntegerOverflowImpl(Data, LHS, op, Value(Data->Type, RHS), Opts); \
143 ReportOptions Opts) {
149 if (ignoreReport(Loc, Opts, ET))
152 ScopedReport R(Opts, Loc, ET);
167 handleNegateOverflowImpl(Data, OldVal, Opts);
172 handleNegateOverflowImpl(Data, OldVal, Opts);
177 ValueHandle RHS, ReportOptions Opts) {
190 if (ignoreReport(Loc, Opts, ET))
193 ScopedReport R(Opts, Loc, ET);
209 handleDivremOverflowImpl(Data, LHS, RHS, Opts);
215 handleDivremOverflowImpl(Data, LHS, RHS, Opts);
221 ReportOptions Opts) {
233 if (ignoreReport(Loc, Opts, ET))
236 ScopedReport R(Opts, Loc, ET);
258 handleShiftOutOfBoundsImpl(Data, LHS, RHS, Opts);
265 handleShiftOutOfBoundsImpl(Data, LHS, RHS, Opts);
270 ReportOptions Opts) {
274 if (ignoreReport(Loc, Opts, ET))
277 ScopedReport R(Opts, Loc, ET);
287 handleOutOfBoundsImpl(Data, Index, Opts);
292 handleOutOfBoundsImpl(Data, Index, Opts);
297 ReportOptions Opts) {
298 ScopedReport R(Opts, Data->Loc, ErrorType::UnreachableCall);
304 handleBuiltinUnreachableImpl(Data, Opts);
308 static void handleMissingReturnImpl(UnreachableData *Data, ReportOptions Opts) {
309 ScopedReport R(Opts, Data->Loc, ErrorType::MissingReturn);
317 handleMissingReturnImpl(Data, Opts);
322 ReportOptions Opts) {
326 if (ignoreReport(Loc, Opts, ET))
329 ScopedReport R(Opts, Loc, ET);
339 handleVLABoundNotPositive(Data, Bound, Opts);
344 handleVLABoundNotPositive(Data, Bound, Opts);
367 ReportOptions Opts) {
375 CallerLoc.reset(getCallerLocation(Opts.pc));
382 if (ignoreReport(SLoc, Opts, ET))
389 ScopedReport R(Opts, Loc, ET);
398 handleFloatCastOverflow(Data, From, Opts);
403 handleFloatCastOverflow(Data, From, Opts);
408 ReportOptions Opts) {
416 if (ignoreReport(Loc, Opts, ET))
419 ScopedReport R(Opts, Loc, ET);
429 handleLoadInvalidValue(Data, Val, Opts);
434 handleLoadInvalidValue(Data, Val, Opts);
440 ReportOptions Opts) {
444 if (ignoreReport(CallLoc, Opts, ET))
447 ScopedReport R(Opts, CallLoc, ET);
464 handleFunctionTypeMismatch(Data, Function, Opts);
470 handleFunctionTypeMismatch(Data, Function, Opts);
474 static void handleNonNullReturn(NonNullReturnData *Data, ReportOptions Opts) {
478 if (ignoreReport(Loc, Opts, ET))
481 ScopedReport R(Opts, Loc, ET);
491 handleNonNullReturn(Data, Opts);
496 handleNonNullReturn(Data, Opts);
500 static void handleNonNullArg(NonNullArgData *Data, ReportOptions Opts) {
504 if (ignoreReport(Loc, Opts, ET))
507 ScopedReport R(Opts, Loc, ET);
517 handleNonNullArg(Data, Opts);
522 handleNonNullArg(Data, Opts);
527 ReportOptions Opts) {
531 if (ignoreReport(Loc, Opts, ET))
534 ScopedReport R(Opts, Loc, ET);
550 handleCFIBadIcall(Data, Function, Opts);
556 handleCFIBadIcall(Data, Function, Opts);