[compiler-rt] [llvm] [TySan] Add initial user facing interfaces (PR #169023)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 21 03:18:51 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 origin/main HEAD --extensions c,h,cpp -- compiler-rt/include/sanitizer/tysan_interface.h compiler-rt/lib/tysan/tysan_interface.cpp compiler-rt/lib/tysan/tysan_interface.h compiler-rt/test/tysan/interface-manipulate-shadow.c compiler-rt/test/tysan/interface-print-type.c compiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cpp compiler-rt/lib/tysan/tysan.cpp compiler-rt/lib/tysan/tysan.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</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 b234dbf27..780071304 100644
--- a/compiler-rt/lib/tysan/tysan.cpp
+++ b/compiler-rt/lib/tysan/tysan.cpp
@@ -56,9 +56,9 @@ static const char *getDisplayName(const char *Name) {
return DName;
}
-int getTDName(void *_td, char *buffer, uptr buffer_size, bool asset_on_error){
- tysan_type_descriptor* td = (tysan_type_descriptor*)_td;
- if(((sptr)td) <= 0){
+int getTDName(void *_td, char *buffer, uptr buffer_size, bool asset_on_error) {
+ tysan_type_descriptor *td = (tysan_type_descriptor *)_td;
+ if (((sptr)td) <= 0) {
return internal_snprintf(buffer, buffer_size, "<unknown type>");
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/169023
More information about the llvm-commits
mailing list