xref: /freebsd/contrib/llvm-project/compiler-rt/lib/nsan/nsan_suppressions.h (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1 //===-- nsan_suppressions.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 // Defines nsan suppression rules.
10 //===----------------------------------------------------------------------===//
11 
12 #ifndef NSAN_SUPPRESSIONS_H
13 #define NSAN_SUPPRESSIONS_H
14 
15 #include "sanitizer_common/sanitizer_suppressions.h"
16 
17 namespace __nsan {
18 
19 enum class CheckKind { Fcmp, Consistency };
20 
21 void InitializeSuppressions();
22 
23 __sanitizer::Suppression *
24 GetSuppressionForStack(const __sanitizer::StackTrace *Stack, CheckKind K);
25 
26 } // namespace __nsan
27 
28 #endif
29