• Home
  • Raw
  • Download

Lines Matching refs:Opts

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