[compiler-rt] [TySan] Added a 'print_stacktrace' flag for more detailed errors (PR #121756)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 03:49:57 PST 2025


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 266bb4971b7cb8481bf9f3aa7a9fbba08ec89d98 f55dd6c9c5b191a5a55f23cd036247abbf491afc --extensions inc,cpp -- compiler-rt/lib/tysan/tysan.cpp compiler-rt/lib/tysan/tysan_flags.inc
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/compiler-rt/lib/tysan/tysan.cpp b/compiler-rt/lib/tysan/tysan.cpp
index 2786d826af..504d8a383b 100644
--- a/compiler-rt/lib/tysan/tysan.cpp
+++ b/compiler-rt/lib/tysan/tysan.cpp
@@ -198,7 +198,8 @@ static void reportError(void *Addr, int Size, tysan_type_descriptor *TD,
 
   if (pc) {
 
-    bool request_fast = StackTrace::WillUseFastUnwind(true) && !flags().print_stacktrace;
+    bool request_fast =
+        StackTrace::WillUseFastUnwind(true) && !flags().print_stacktrace;
     BufferedStackTrace ST;
     ST.Unwind(kStackTraceMax, pc, bp, 0, 0, 0, request_fast);
     ST.Print();

``````````

</details>


https://github.com/llvm/llvm-project/pull/121756


More information about the llvm-commits mailing list