xref: /netbsd-src/external/gpl3/gcc/dist/libsanitizer/include/sanitizer/ubsan_interface.h (revision ad6404254a199e678dd184a869b8ae347b85815f)
1*ad640425Smrg //===-- sanitizer/ubsan_interface.h -----------------------------*- C++ -*-===//
2*ad640425Smrg //
3*ad640425Smrg // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*ad640425Smrg // See https://llvm.org/LICENSE.txt for license information.
5*ad640425Smrg // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*ad640425Smrg //
7*ad640425Smrg //===----------------------------------------------------------------------===//
8*ad640425Smrg //
9*ad640425Smrg // This file is a part of UBSanitizer (UBSan).
10*ad640425Smrg //
11*ad640425Smrg // Public interface header.
12*ad640425Smrg //===----------------------------------------------------------------------===//
13*ad640425Smrg #ifndef SANITIZER_UBSAN_INTERFACE_H
14*ad640425Smrg #define SANITIZER_UBSAN_INTERFACE_H
15*ad640425Smrg 
16*ad640425Smrg #ifdef __cplusplus
17*ad640425Smrg extern "C" {
18*ad640425Smrg #endif
19*ad640425Smrg /// User-provided default option settings.
20*ad640425Smrg ///
21*ad640425Smrg /// You can provide your own implementation of this function to return a string
22*ad640425Smrg /// containing UBSan runtime options (for example,
23*ad640425Smrg /// <c>verbosity=1:halt_on_error=0</c>).
24*ad640425Smrg ///
25*ad640425Smrg /// \returns Default options string.
26*ad640425Smrg const char* __ubsan_default_options(void);
27*ad640425Smrg 
28*ad640425Smrg #ifdef __cplusplus
29*ad640425Smrg }  // extern "C"
30*ad640425Smrg #endif
31*ad640425Smrg 
32*ad640425Smrg #endif  // SANITIZER_UBSAN_INTERFACE_H
33