hwasan_flags.h 854 B

12345678910111213141516171819202122232425262728293031
  1. //===-- hwasan_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. // This file is a part of HWAddressSanitizer.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef HWASAN_FLAGS_H
  13. #define HWASAN_FLAGS_H
  14. #include "sanitizer_common/sanitizer_internal_defs.h"
  15. namespace __hwasan {
  16. struct Flags {
  17. #define HWASAN_FLAG(Type, Name, DefaultValue, Description) Type Name;
  18. #include "hwasan_flags.inc"
  19. #undef HWASAN_FLAG
  20. void SetDefaults();
  21. };
  22. Flags *flags();
  23. } // namespace __hwasan
  24. #endif // HWASAN_FLAGS_H