forked from OSchip/llvm-project
35 lines
1.1 KiB
C++
35 lines
1.1 KiB
C++
//===-- 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"
|
|
|
|
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
|