mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Similarly to Clang, the flag enables coverage instrumentation, and links `libLLVMFuzzer.a` to the produced binary. Additionally, this change affects the driver logic, and enables the concurrent usage of multiple sanitizers.
28 lines
795 B
C++
28 lines
795 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 {
|
|
Address = 1 << 1,
|
|
Thread = 1 << 2,
|
|
Fuzzer = 1 << 3
|
|
};
|
|
|
|
} // end namespace swift
|
|
|
|
#endif // SWIFT_BASIC_SANITIZERS_H
|