[compiler-rt] [Darwin][Sanitizers][CrashReporter] Adopt initializer for Crash Reporter Annotations struct (PR #123978)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 10:21:24 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 5a9b74d20d5f3b7f92c01d68d28778108dfb1308 d7af79629968df3afab12c0ef6378c2289487b3d --extensions cpp -- compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
index ead3d7123e..d425440354 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
@@ -823,7 +823,7 @@ struct crashreporter_annotations_t gCRAnnotations
 static const char *__crashreporter_info__ __attribute__((__used__)) =
     &crashreporter_info_buff[0];
 asm(".desc ___crashreporter_info__, 0x10");
-#endif  // HAVE_CRASHREPORTERCLIENT_H
+#  endif  // HAVE_CRASHREPORTERCLIENT_H
 
 }  // extern "C"
 

``````````

</details>


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


More information about the llvm-commits mailing list