mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 18:16:35 +00:00

Following the example of tsan, where we took the name This would allow users to determine if they want to see ALL output from rtsan. Additionally, remove the UNLIKELY hint, as it is now up to the flag whether or not it is likely that we go through this conditional.
25 lines
1.0 KiB
C++
25 lines
1.0 KiB
C++
//===------------------------ rtsan_flags.inc -------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// RTSan runtime flags.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
#ifndef RTSAN_FLAG
|
|
#error "Define RTSAN_FLAG prior to including this file!"
|
|
#endif
|
|
|
|
// RTSAN_FLAG(Type, Name, DefaultValue, Description)
|
|
// See COMMON_FLAG in sanitizer_flags.inc for more details.
|
|
|
|
RTSAN_FLAG(bool, halt_on_error, true, "Exit after first reported error.")
|
|
RTSAN_FLAG(bool, print_stats_on_exit, false, "Print stats on exit.")
|
|
RTSAN_FLAG(const char *, suppressions, "", "Suppressions file name.")
|
|
RTSAN_FLAG(bool, suppress_equal_stacks, true,
|
|
"Suppress a report if we've already output another report "
|
|
"with the same stack.")
|