1 //===--- Sanitizers.h - C Language Family Language Options ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief Defines the clang::SanitizerKind enum.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_CLANG_BASIC_SANITIZERS_H
16 #define LLVM_CLANG_BASIC_SANITIZERS_H
20 enum class SanitizerKind {
21 #define SANITIZER(NAME, ID) ID,
22 #include "clang/Basic/Sanitizers.def"
27 /// \brief Bitmask of enabled sanitizers.
32 /// \brief Check if a certain sanitizer is enabled.
33 bool has(SanitizerKind K) const;
35 /// \brief Enable or disable a certain sanitizer.
36 void set(SanitizerKind K, bool Value);
38 /// \brief Disable all sanitizers.
41 /// \brief Returns true if at least one sanitizer is enabled.
45 } // end namespace clang