• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===-- options_parser.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 #ifndef GWP_ASAN_OPTIONAL_OPTIONS_PARSER_H_
10 #define GWP_ASAN_OPTIONAL_OPTIONS_PARSER_H_
11 
12 #include "gwp_asan/optional/backtrace.h"
13 #include "gwp_asan/options.h"
14 #include "sanitizer_common/sanitizer_common.h"
15 
16 namespace gwp_asan {
17 namespace options {
18 // Parse the options from the GWP_ASAN_FLAGS environment variable.
19 void initOptions();
20 // Returns the initialised options. Call initOptions() prior to calling this
21 // function.
22 Options &getOptions();
23 } // namespace options
24 } // namespace gwp_asan
25 
26 extern "C" {
27 SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE const char *
28 __gwp_asan_default_options();
29 }
30 
31 #endif // GWP_ASAN_OPTIONAL_OPTIONS_PARSER_H_
32