ubsan_flags.inc 1.2 KB

12345678910111213141516171819202122232425262728
  1. //===-- ubsan_flags.inc -----------------------------------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // UBSan runtime flags.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef UBSAN_FLAG
  13. # error "Define UBSAN_FLAG prior to including this file!"
  14. #endif
  15. // UBSAN_FLAG(Type, Name, DefaultValue, Description)
  16. // See COMMON_FLAG in sanitizer_flags.inc for more details.
  17. UBSAN_FLAG(bool, halt_on_error, false,
  18. "Crash the program after printing the first error report")
  19. UBSAN_FLAG(bool, print_stacktrace, false,
  20. "Include full stacktrace into an error report")
  21. UBSAN_FLAG(const char *, suppressions, "", "Suppressions file name.")
  22. UBSAN_FLAG(bool, report_error_type, false,
  23. "Print specific error type instead of 'undefined-behavior' in summary.")
  24. UBSAN_FLAG(bool, silence_unsigned_overflow, false,
  25. "Do not print non-fatal error reports for unsigned integer overflow. "
  26. "Used to provide fuzzing signal without blowing up logs.")