1 //===-- options_parser.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 #ifndef GWP_ASAN_OPTIONAL_OPTIONS_PARSER_H_
10 #define GWP_ASAN_OPTIONAL_OPTIONS_PARSER_H_
12 #include "gwp_asan/optional/backtrace.h"
13 #include "gwp_asan/options.h"
14 #include "sanitizer_common/sanitizer_common.h"
18 // Parse the options from the GWP_ASAN_FLAGS environment variable.
20 // Returns the initialised options. Call initOptions() prior to calling this
22 Options &getOptions();
23 } // namespace options
24 } // namespace gwp_asan
27 SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE const char *
28 __gwp_asan_default_options();
31 #endif // GWP_ASAN_OPTIONAL_OPTIONS_PARSER_H_