[compiler-rt] short string annotations cleaning traits (PR #110941)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 23:48:54 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 b0fbfbb6f33f20ef6b72ab003740f8f96efedd7e 017632a6c2d14b7fbf95758ae618d7b3b74963b5 --extensions inc,cpp,h -- compiler-rt/test/asan/TestCases/copy_container_annotations.cpp compiler-rt/include/sanitizer/common_interface_defs.h compiler-rt/lib/asan/asan_errors.cpp compiler-rt/lib/asan/asan_errors.h compiler-rt/lib/asan/asan_poisoning.cpp compiler-rt/lib/asan/asan_report.cpp compiler-rt/lib/asan/asan_report.h compiler-rt/lib/sanitizer_common/sanitizer_common_interface.inc compiler-rt/lib/sanitizer_common/sanitizer_interface_internal.h
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/asan/asan_poisoning.cpp b/compiler-rt/lib/asan/asan_poisoning.cpp
index 0fd3a1428c..762670632f 100644
--- a/compiler-rt/lib/asan/asan_poisoning.cpp
+++ b/compiler-rt/lib/asan/asan_poisoning.cpp
@@ -728,9 +728,9 @@ void __sanitizer_copy_contiguous_container_annotations(const void *src_beg_p,
   bool copy_in_reversed_order = src_beg < dst_beg && dst_beg <= src_end_up;
   if (src_beg % granularity != dst_beg % granularity ||
       RoundDownTo(dst_end - 1, granularity) <= dst_beg) {
-    if (copy_in_reversed_order) 
+    if (copy_in_reversed_order)
       SlowReversedCopyContainerAnnotations(src_beg, src_end, dst_beg, dst_end);
-     else 
+    else
       SlowCopyContainerAnnotations(src_beg, src_end, dst_beg, dst_end);
     return;
   }

``````````

</details>


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


More information about the llvm-commits mailing list