1 //===-- asan_flags.h -------------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // This file is a part of AddressSanitizer, an address sanity checker.
11 // ASan runtime flags.
12 //===----------------------------------------------------------------------===//
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).
32 #define ASAN_FLAG(Type, Name, DefaultValue, Description) Type Name;
33 #include "asan_flags.inc"
39 extern Flags asan_flags_dont_use_directly
;
40 inline Flags
*flags() {
41 return &asan_flags_dont_use_directly
;
44 void InitializeFlags();
48 #endif // ASAN_FLAGS_H