dfsan_flags.h 861 B

1234567891011121314151617181920212223242526272829303132
  1. //===-- dfsan_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 DataFlowSanitizer.
  10. //
  11. // DFSan flags.
  12. //===----------------------------------------------------------------------===//
  13. #ifndef DFSAN_FLAGS_H
  14. #define DFSAN_FLAGS_H
  15. namespace __dfsan {
  16. struct Flags {
  17. #define DFSAN_FLAG(Type, Name, DefaultValue, Description) Type Name;
  18. #include "dfsan_flags.inc"
  19. #undef DFSAN_FLAG
  20. void SetDefaults();
  21. };
  22. extern Flags flags_data;
  23. inline Flags &flags() { return flags_data; }
  24. } // namespace __dfsan
  25. #endif // DFSAN_FLAGS_H