[compiler-rt] [sanitizers] improve debug output for failed suppression parse (PR #72066)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 14 13:38:32 PST 2023
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 4c3206c5d5dee9dc3c7ad32c09d57a7fc592bcea 93c3c4ab8baafed74085decddbe675c4b621b072 -- compiler-rt/lib/sanitizer_common/sanitizer_suppressions.cpp compiler-rt/lib/sanitizer_common/tests/sanitizer_suppressions_test.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_suppressions_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_suppressions_test.cpp
index aeff9897a5..45ed16b173 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_suppressions_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_suppressions_test.cpp
@@ -131,12 +131,12 @@ TEST_F(SuppressionContextTest, HasSuppressionType) {
TEST_F(SuppressionContextTest, RegressionTestForBufferOverflowInSuppressions) {
const char *expected_output =
- "failed to parse suppressions.\n"
- "Supported suppression types are:\n"
- "- race\n"
- "- thread\n"
- "- mutex\n"
- "- signal\n";
+ "failed to parse suppressions.\n"
+ "Supported suppression types are:\n"
+ "- race\n"
+ "- thread\n"
+ "- mutex\n"
+ "- signal\n";
EXPECT_DEATH(ctx_.Parse("race"), expected_output);
EXPECT_DEATH(ctx_.Parse("foo"), expected_output);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/72066
More information about the llvm-commits
mailing list