xref: /freebsd/contrib/llvm-project/compiler-rt/lib/asan/asan_suppressions.h (revision 68d75eff68281c1b445e3010bb975eae07aac225)
10b57cec5SDimitry Andric //===-- asan_suppressions.h -------------------------------------*- C++ -*-===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric //
90b57cec5SDimitry Andric // This file is a part of AddressSanitizer, an address sanity checker.
100b57cec5SDimitry Andric //
11*68d75effSDimitry Andric // ASan-private header for asan_suppressions.cpp.
120b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
130b57cec5SDimitry Andric #ifndef ASAN_SUPPRESSIONS_H
140b57cec5SDimitry Andric #define ASAN_SUPPRESSIONS_H
150b57cec5SDimitry Andric 
160b57cec5SDimitry Andric #include "asan_internal.h"
170b57cec5SDimitry Andric #include "sanitizer_common/sanitizer_stacktrace.h"
180b57cec5SDimitry Andric 
190b57cec5SDimitry Andric namespace __asan {
200b57cec5SDimitry Andric 
210b57cec5SDimitry Andric void InitializeSuppressions();
220b57cec5SDimitry Andric bool IsInterceptorSuppressed(const char *interceptor_name);
230b57cec5SDimitry Andric bool HaveStackTraceBasedSuppressions();
240b57cec5SDimitry Andric bool IsStackTraceSuppressed(const StackTrace *stack);
250b57cec5SDimitry Andric bool IsODRViolationSuppressed(const char *global_var_name);
260b57cec5SDimitry Andric 
270b57cec5SDimitry Andric } // namespace __asan
280b57cec5SDimitry Andric 
290b57cec5SDimitry Andric #endif // ASAN_SUPPRESSIONS_H
30