[compiler-rt] [CompilerRT] Add numerical sanitizer (PR #94322)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 8 22:36:12 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff dcb71c06c7b059e313f22e46bc9c41343a03f1eb 820f9d8475d5d714caa5a083b1a2f14e2d1b747e -- compiler-rt/include/sanitizer/nsan_interface.h compiler-rt/lib/nsan/nsan.h compiler-rt/lib/nsan/nsan_flags.h compiler-rt/lib/nsan/nsan_flags.inc compiler-rt/lib/nsan/nsan_platform.h compiler-rt/lib/nsan/nsan_stats.h compiler-rt/lib/nsan/nsan_suppressions.h compiler-rt/lib/nsan/tests/NSanUnitTest.cpp compiler-rt/lib/nsan/tests/nsan_unit_test_main.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/nsan/nsan_suppressions.h b/compiler-rt/lib/nsan/nsan_suppressions.h
index 7afcd7d564..0ac81fcf15 100644
--- a/compiler-rt/lib/nsan/nsan_suppressions.h
+++ b/compiler-rt/lib/nsan/nsan_suppressions.h
@@ -16,16 +16,12 @@
namespace __nsan {
-enum class CheckKind {
- Fcmp,
- Consistency
-};
+enum class CheckKind { Fcmp, Consistency };
void InitializeSuppressions();
__sanitizer::Suppression *
-GetSuppressionForStack(const __sanitizer::StackTrace *Stack,
- CheckKind K);
+GetSuppressionForStack(const __sanitizer::StackTrace *Stack, CheckKind K);
} // namespace __nsan
``````````
</details>
https://github.com/llvm/llvm-project/pull/94322
More information about the llvm-commits
mailing list