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 cpp,h -- 
compiler-rt/lib/sigsan/sigsan.cpp clang/include/clang/Driver/SanitizerArgs.h 
clang/lib/Driver/ToolChains/CommonArgs.cpp 
clang/lib/Driver/ToolChains/Linux.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/lib/sigsan/sigsan.cpp 
b/compiler-rt/lib/sigsan/sigsan.cpp
index f14ed9357..939562f52 100644
--- a/compiler-rt/lib/sigsan/sigsan.cpp
+++ b/compiler-rt/lib/sigsan/sigsan.cpp
@@ -204,7 +204,8 @@ SIGSAN_INTERCEPTOR(FILE *, freopen, (path, mode, stream), 
const char *path,
                    const char *mode, FILE *stream)
 
 // GNU stdio
-SIGSAN_INTERCEPTOR(int, vasprintf, (strp, fmt, ap), char **strp, const char 
*fmt, va_list ap)
+SIGSAN_INTERCEPTOR(int, vasprintf, (strp, fmt, ap), char **strp,
+                   const char *fmt, va_list ap)
 INTERCEPTOR(int, asprintf, char **strp, const char *fmt, ...) {
   va_list ap;
   va_start(ap, fmt);
@@ -226,7 +227,8 @@ INTERCEPTOR(void, syslog, int priority, const char *format, 
...) {
   va_end(ap);
 }
 
-SIGSAN_INTERCEPTOR(int, pthread_mutex_init, (mutex, mutexattr), 
pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr)
+SIGSAN_INTERCEPTOR(int, pthread_mutex_init, (mutex, mutexattr),
+                   pthread_mutex_t *mutex, const pthread_mutexattr_t 
*mutexattr)
 SIGSAN_INTERCEPTOR(int, pthread_mutex_lock, (mutex), pthread_mutex_t *mutex)
 SIGSAN_INTERCEPTOR(int, pthread_mutex_trylock, (mutex), pthread_mutex_t *mutex)
 SIGSAN_INTERCEPTOR(int, pthread_mutex_unlock, (mutex), pthread_mutex_t *mutex)

``````````

</details>


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

Reply via email to