blob: a7ff6c586071249669e993b6cf0b5ba5a4cd9729 [file] [log] [blame]
Stephen Hines86277eb2015-03-23 12:06:32 -07001//===-- msan_flags.inc ------------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// MSan runtime flags.
11//
12//===----------------------------------------------------------------------===//
13#ifndef MSAN_FLAG
14# error "Define MSAN_FLAG prior to including this file!"
15#endif
16
17// MSAN_FLAG(Type, Name, DefaultValue, Description)
18// See COMMON_FLAG in sanitizer_flags.inc for more details.
19
Pirama Arumuga Nainar799172d2016-03-03 15:50:30 -080020MSAN_FLAG(int, exit_code, -1,
21 "DEPRECATED. Use exitcode from common flags instead.")
Stephen Hines86277eb2015-03-23 12:06:32 -070022MSAN_FLAG(int, origin_history_size, Origin::kMaxDepth, "")
23MSAN_FLAG(int, origin_history_per_stack_limit, 20000, "")
24MSAN_FLAG(bool, poison_heap_with_zeroes, false, "")
25MSAN_FLAG(bool, poison_stack_with_zeroes, false, "")
26MSAN_FLAG(bool, poison_in_malloc, true, "")
27MSAN_FLAG(bool, poison_in_free, true, "")
Pirama Arumuga Nainar799172d2016-03-03 15:50:30 -080028MSAN_FLAG(bool, poison_in_dtor, false, "")
Stephen Hines86277eb2015-03-23 12:06:32 -070029MSAN_FLAG(bool, report_umrs, true, "")
30MSAN_FLAG(bool, wrap_signals, true, "")
31MSAN_FLAG(bool, print_stats, false, "")
32MSAN_FLAG(bool, halt_on_error, !&__msan_keep_going, "")
33MSAN_FLAG(bool, atexit, false, "")
34MSAN_FLAG(int, store_context_size, 20,
35 "Like malloc_context_size, but for uninit stores.")