Path: blob/main/contrib/llvm-project/compiler-rt/lib/tsan/rtl/tsan_flags.h
35269 views
//===-- tsan_flags.h --------------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file is a part of ThreadSanitizer (TSan), a race detector.9// NOTE: This file may be included into user code.10//===----------------------------------------------------------------------===//1112#ifndef TSAN_FLAGS_H13#define TSAN_FLAGS_H1415#include "sanitizer_common/sanitizer_flags.h"16#include "sanitizer_common/sanitizer_deadlock_detector_interface.h"1718namespace __tsan {1920struct Flags : DDFlags {21#define TSAN_FLAG(Type, Name, DefaultValue, Description) Type Name;22#include "tsan_flags.inc"23#undef TSAN_FLAG2425void SetDefaults();26void ParseFromString(const char *str);27};2829void InitializeFlags(Flags *flags, const char *env,30const char *env_option_name = nullptr);31} // namespace __tsan3233#endif // TSAN_FLAGS_H343536