sancov_flags.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //===-- sancov_flags.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. // Sanitizer Coverage runtime flags.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef SANCOV_FLAGS_H
  13. #define SANCOV_FLAGS_H
  14. #include "sanitizer_flag_parser.h"
  15. #include "sanitizer_internal_defs.h"
  16. namespace __sancov {
  17. struct SancovFlags {
  18. #define SANCOV_FLAG(Type, Name, DefaultValue, Description) Type Name;
  19. #include "sancov_flags.inc"
  20. #undef SANCOV_FLAG
  21. void SetDefaults();
  22. };
  23. extern SancovFlags sancov_flags_dont_use_directly;
  24. inline SancovFlags* sancov_flags() { return &sancov_flags_dont_use_directly; }
  25. void InitializeSancovFlags();
  26. } // namespace __sancov
  27. extern "C" SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE const char*
  28. __sancov_default_options();
  29. #endif