| 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 |
|
| 16 |
#include <sanitizer/common_interface_defs.h> |
| 17 |
|
| 18 |
#ifdef __cplusplus |
| 19 |
extern "C" { |
| 20 |
#endif |
| 21 |
/// User-provided default option settings. |
| 22 |
/// |
| 23 |
/// You can provide your own implementation of this function to return a string |
| 24 |
/// containing UBSan runtime options (for example, |
| 25 |
/// <c>verbosity=1:halt_on_error=0</c>). |
| 26 |
/// |
| 27 |
/// \returns Default options string. |
| 28 |
const char *SANITIZER_CDECL __ubsan_default_options(void); |
| 29 |
|
| 30 |
#ifdef __cplusplus |
| 31 |
} // extern "C" |
| 32 |
#endif |
| 33 |
|
| 34 |
#endif // SANITIZER_UBSAN_INTERFACE_H |