[DominatorTree] Add support for mixed pre/post CFG views.
[llvm-project.git] / compiler-rt / lib / asan / asan_flags.h
blobb55c81f07d4bd170e7d9a0f7a9d046af69541541
1 //===-- asan_flags.h -------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file is a part of AddressSanitizer, an address sanity checker.
11 // ASan runtime flags.
12 //===----------------------------------------------------------------------===//
14 #ifndef ASAN_FLAGS_H
15 #define ASAN_FLAGS_H
17 #include "sanitizer_common/sanitizer_internal_defs.h"
18 #include "sanitizer_common/sanitizer_flag_parser.h"
20 // ASan flag values can be defined in four ways:
21 // 1) initialized with default values at startup.
22 // 2) overriden during compilation of ASan runtime by providing
23 // compile definition ASAN_DEFAULT_OPTIONS.
24 // 3) overriden from string returned by user-specified function
25 // __asan_default_options().
26 // 4) overriden from env variable ASAN_OPTIONS.
27 // 5) overriden during ASan activation (for now used on Android only).
29 namespace __asan {
31 struct Flags {
32 #define ASAN_FLAG(Type, Name, DefaultValue, Description) Type Name;
33 #include "asan_flags.inc"
34 #undef ASAN_FLAG
36 void SetDefaults();
39 extern Flags asan_flags_dont_use_directly;
40 inline Flags *flags() {
41 return &asan_flags_dont_use_directly;
44 void InitializeFlags();
46 } // namespace __asan
48 #endif // ASAN_FLAGS_H