ubsan_interface.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. //===-- sanitizer/ubsan_interface.h -----------------------------*- 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. // This file is a part of UBSanitizer (UBSan).
  10. //
  11. // Public interface header.
  12. //===----------------------------------------------------------------------===//
  13. #ifndef SANITIZER_UBSAN_INTERFACE_H
  14. #define SANITIZER_UBSAN_INTERFACE_H
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. /// User-provided default option settings.
  19. ///
  20. /// You can provide your own implementation of this function to return a string
  21. /// containing UBSan runtime options (for example,
  22. /// <c>verbosity=1:halt_on_error=0</c>).
  23. ///
  24. /// \returns Default options string.
  25. const char* __ubsan_default_options(void);
  26. #ifdef __cplusplus
  27. } // extern "C"
  28. #endif
  29. #endif // SANITIZER_UBSAN_INTERFACE_H