aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/compiler-rt/lib/nsan/nsan_suppressions.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/compiler-rt/lib/nsan/nsan_suppressions.h')
-rw-r--r--contrib/llvm-project/compiler-rt/lib/nsan/nsan_suppressions.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/contrib/llvm-project/compiler-rt/lib/nsan/nsan_suppressions.h b/contrib/llvm-project/compiler-rt/lib/nsan/nsan_suppressions.h
new file mode 100644
index 000000000000..0ac81fcf154d
--- /dev/null
+++ b/contrib/llvm-project/compiler-rt/lib/nsan/nsan_suppressions.h
@@ -0,0 +1,28 @@
+//===-- nsan_suppressions.h -------------------------------------*- 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
+//
+//===----------------------------------------------------------------------===//
+//
+// Defines nsan suppression rules.
+//===----------------------------------------------------------------------===//
+
+#ifndef NSAN_SUPPRESSIONS_H
+#define NSAN_SUPPRESSIONS_H
+
+#include "sanitizer_common/sanitizer_suppressions.h"
+
+namespace __nsan {
+
+enum class CheckKind { Fcmp, Consistency };
+
+void InitializeSuppressions();
+
+__sanitizer::Suppression *
+GetSuppressionForStack(const __sanitizer::StackTrace *Stack, CheckKind K);
+
+} // namespace __nsan
+
+#endif