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