Files
swift-mirror/include/swift/Basic/Sanitizers.h
Julian Lettner 34f830116d [Driver][NFC] Define sanitizer mapping <kind, name, file> in one place
Lower maintenance cost for explicit mapping between sanitizer enum and
string values.
2019-03-28 13:56:54 -07:00

27 lines
838 B
C++

//===--- Sanitizers.h - Helpers related to sanitizers -----------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_BASIC_SANITIZERS_H
#define SWIFT_BASIC_SANITIZERS_H
namespace swift {
// Enabling bitwise masking.
enum class SanitizerKind : unsigned {
#define SANITIZER(enum_bit, kind, name, file) kind = (1 << enum_bit),
#include "Sanitizers.def"
};
} // end namespace swift
#endif // SWIFT_BASIC_SANITIZERS_H