Retro68/gcc/libsanitizer/tsan/tsan_flags.h

34 lines
984 B
C
Raw Normal View History

2014-09-21 17:33:12 +00:00
//===-- tsan_flags.h --------------------------------------------*- C++ -*-===//
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// 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"
2015-08-28 15:33:40 +00:00
#include "sanitizer_common/sanitizer_deadlock_detector_interface.h"
2014-09-21 17:33:12 +00:00
namespace __tsan {
2015-08-28 15:33:40 +00:00
struct Flags : DDFlags {
2017-04-10 11:32:00 +00:00
#define TSAN_FLAG(Type, Name, DefaultValue, Description) Type Name;
#include "tsan_flags.inc"
#undef TSAN_FLAG
void SetDefaults();
void ParseFromString(const char *str);
2014-09-21 17:33:12 +00:00
};
Flags *flags();
void InitializeFlags(Flags *flags, const char *env);
} // namespace __tsan
#endif // TSAN_FLAGS_H