1 //===-- sancov_flags.h ------------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 // 10 // Sanitizer Coverage runtime flags. 11 // 12 //===----------------------------------------------------------------------===// 13 #ifndef SANCOV_FLAGS_H 14 #define SANCOV_FLAGS_H 15 16 #include "sanitizer_flag_parser.h" 17 #include "sanitizer_internal_defs.h" 18 19 namespace __sancov { 20 21 struct SancovFlags { 22 #define SANCOV_FLAG(Type, Name, DefaultValue, Description) Type Name; 23 #include "sancov_flags.inc" 24 #undef SANCOV_FLAG 25 26 void SetDefaults(); 27 }; 28 29 extern SancovFlags sancov_flags_dont_use_directly; 30 sancov_flags()31inline SancovFlags* sancov_flags() { return &sancov_flags_dont_use_directly; } 32 33 void InitializeSancovFlags(); 34 35 } // namespace __sancov 36 37 extern "C" SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE const char* 38 __sancov_default_options(); 39 40 #endif 41