Files
zig/lib/libtsan/tsan_flags.h
T
Alex Rønne Petersen dbaea8d67e libtsan: update to LLVM 22
2026-04-25 21:49:39 +02:00

43 lines
1.3 KiB
C++
Vendored

//===-- tsan_flags.h --------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file is a part of ThreadSanitizer (TSan), a race detector.
// NOTE: This file may be included into user code.
//===----------------------------------------------------------------------===//
#ifndef TSAN_FLAGS_H
#define TSAN_FLAGS_H
#include "sanitizer_common/sanitizer_flags.h"
#include "sanitizer_common/sanitizer_deadlock_detector_interface.h"
#if SANITIZER_APPLE && !SANITIZER_GO
enum LockDuringWriteSetting {
kLockDuringAllWrites,
kNoLockDuringWritesCurrentProcess,
kNoLockDuringWritesAllProcesses,
};
#endif
namespace __tsan {
struct Flags : DDFlags {
#define TSAN_FLAG(Type, Name, DefaultValue, Description) Type Name;
#include "tsan_flags.inc"
#undef TSAN_FLAG
void SetDefaults();
void ParseFromString(const char *str);
};
void InitializeFlags(Flags *flags, const char *env,
const char *env_option_name = nullptr);
} // namespace __tsan
#endif // TSAN_FLAGS_H