[compiler-rt] [sanitizers] convert some errant CRLF line endings to LF (PR #108454)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 12 14:01:58 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 853bff2122e1f42398587f76234c05d56f16318e cd5c4b194b8c98d0f7daf84a32c02490f6c8f6fd --extensions cpp,h -- compiler-rt/lib/asan/asan_malloc_win_thunk.cpp compiler-rt/lib/asan/asan_win_common_runtime_thunk.cpp compiler-rt/lib/asan/asan_win_common_runtime_thunk.h compiler-rt/lib/asan/asan_win_static_runtime_thunk.cpp compiler-rt/lib/sanitizer_common/sanitizer_win_interception.cpp compiler-rt/lib/sanitizer_common/sanitizer_win_interception.h compiler-rt/lib/sanitizer_common/sanitizer_win_thunk_interception.cpp compiler-rt/test/asan/TestCases/Posix/strndup_oob_test2.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test2.cpp b/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test2.cpp
index 5b54c68161..63b4da3502 100644
--- a/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test2.cpp
+++ b/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test2.cpp
@@ -11,7 +11,7 @@
#include <string.h>
-char kChars[] = { 'f', 'o', 'o' };
+char kChars[] = {'f', 'o', 'o'};
int main(int argc, char **argv) {
char *copy = strndup(kChars, 3);
``````````
</details>
https://github.com/llvm/llvm-project/pull/108454
More information about the llvm-commits
mailing list