xref: /freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/hwasan_flags.h (revision fe6060f10f634930ff71b7c50291ddc610da2475)
10b57cec5SDimitry Andric //===-- hwasan_flags.h ------------------------------------------*- C++ -*-===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric //
90b57cec5SDimitry Andric // This file is a part of HWAddressSanitizer.
100b57cec5SDimitry Andric //
110b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
120b57cec5SDimitry Andric #ifndef HWASAN_FLAGS_H
130b57cec5SDimitry Andric #define HWASAN_FLAGS_H
140b57cec5SDimitry Andric 
15*fe6060f1SDimitry Andric #include "sanitizer_common/sanitizer_internal_defs.h"
16*fe6060f1SDimitry Andric 
170b57cec5SDimitry Andric namespace __hwasan {
180b57cec5SDimitry Andric 
190b57cec5SDimitry Andric struct Flags {
200b57cec5SDimitry Andric #define HWASAN_FLAG(Type, Name, DefaultValue, Description) Type Name;
210b57cec5SDimitry Andric #include "hwasan_flags.inc"
220b57cec5SDimitry Andric #undef HWASAN_FLAG
230b57cec5SDimitry Andric 
240b57cec5SDimitry Andric   void SetDefaults();
250b57cec5SDimitry Andric };
260b57cec5SDimitry Andric 
270b57cec5SDimitry Andric Flags *flags();
280b57cec5SDimitry Andric 
290b57cec5SDimitry Andric }  // namespace __hwasan
300b57cec5SDimitry Andric 
310b57cec5SDimitry Andric #endif  // HWASAN_FLAGS_H
32