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,cl,cpp,h -- 
clang/test/DebugInfo/Generic/builtin.c clang/lib/CodeGen/CGBuiltin.cpp 
clang/lib/CodeGen/CGDebugInfo.cpp clang/lib/CodeGen/CGDebugInfo.h 
clang/lib/Driver/ToolChains/Clang.cpp 
clang/test/CodeGenOpenCL/enqueue-kernel-non-entry-block.cl 
clang/test/DebugInfo/KeyInstructions/builtin.c 
clang/test/Driver/debug-options.c 
compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy.cpp 
compiler-rt/test/asan/TestCases/Windows/dll_intercept_memset.cpp 
compiler-rt/test/dfsan/origin_memcpy.c compiler-rt/test/dfsan/origin_memmove.c 
compiler-rt/test/dfsan/origin_unaligned_memtrans.c 
compiler-rt/test/dfsan/pthread.c 
compiler-rt/test/msan/chained_origin_memcpy.cpp 
compiler-rt/test/msan/chained_origin_memmove.cpp --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/test/asan/TestCases/Windows/dll_intercept_memset.cpp 
b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memset.cpp
index fd9d910be..341bf2698 100644
--- a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memset.cpp
+++ b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memset.cpp
@@ -26,9 +26,9 @@ int test_function() {
 // CHECK: AddressSanitizer: stack-buffer-overflow on address 
[[ADDR:0x[0-9a-f]+]]
 // CHECK: WRITE of size 6 at [[ADDR]] thread T0
 // CHECK-NEXT:  __asan_memset
-// CHECK-NEXT:  test_function {{.*}}dll_intercept_memset.cpp:[[@LINE-7]]
-// CHECK: Address [[ADDR]] is located in stack of thread T0 at offset {{.*}} 
in frame
-// CHECK-NEXT:  test_function {{.*}}dll_intercept_memset.cpp
-// CHECK: 'buff'{{.*}} <== Memory access at offset {{.*}} overflows this 
variable
+  // CHECK-NEXT:  test_function {{.*}}dll_intercept_memset.cpp:[[@LINE-7]]
+  // CHECK: Address [[ADDR]] is located in stack of thread T0 at offset {{.*}} 
in frame
+  // CHECK-NEXT:  test_function {{.*}}dll_intercept_memset.cpp
+  // CHECK: 'buff'{{.*}} <== Memory access at offset {{.*}} overflows this 
variable
   return 0;
 }

``````````

</details>


https://github.com/llvm/llvm-project/pull/189969
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to