[clang] [compiler-rt] [llvm] [NFC, sanitizer_symbolizer] Split Fuchsia and Markup. (PR #72305)

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 14 12:20:50 PST 2023


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 2ccd79d70ef4a7295cd282f4f46b3483c035e1fa 8e47bce1f9ba79bd9006b69700b6f45e6dd7054d -- compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report_fuchsia.cpp compiler-rt/lib/sanitizer_common/sanitizer_unwind_fuchsia.cpp compiler-rt/lib/sanitizer_common/sanitizer_coverage_fuchsia.cpp compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp compiler-rt/lib/xray/xray_utils.cpp compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_coverage_fuchsia.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_coverage_fuchsia.cpp
index a7f9273cf4..73668a5621 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_coverage_fuchsia.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_coverage_fuchsia.cpp
@@ -35,7 +35,7 @@
 #include "sanitizer_common.h"
 #include "sanitizer_interface_internal.h"
 #include "sanitizer_internal_defs.h"
-#include "sanitizer_symbolizer_markup_constants.h"
+#  include "sanitizer_symbolizer_markup_constants.h"
 
 using namespace __sanitizer;
 
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp
index 1b2da1ae5e..6402cfd7c3 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp
@@ -15,11 +15,10 @@
 
 #if SANITIZER_SYMBOLIZER_MARKUP
 
-
-#include "sanitizer_common.h"
-#include "sanitizer_stacktrace_printer.h"
-#include "sanitizer_symbolizer.h"
-#include "sanitizer_symbolizer_markup_constants.h"
+#  include "sanitizer_common.h"
+#  include "sanitizer_stacktrace_printer.h"
+#  include "sanitizer_symbolizer.h"
+#  include "sanitizer_symbolizer_markup_constants.h"
 
 namespace __sanitizer {
 
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h
index 4280b92b7c..0f96ca7860 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h
@@ -1,4 +1,5 @@
-//===-- sanitizer_symbolizer_markup_constants.h -----------------------------------===//
+//===-- sanitizer_symbolizer_markup_constants.h
+//-----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report_fuchsia.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report_fuchsia.cpp
index 527f12e7f0..fb49cfbb30 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report_fuchsia.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report_fuchsia.cpp
@@ -1,4 +1,5 @@
-//===-- sanitizer_symbolizer_report_fuchsia.cpp -----------------------------------===//
+//===-- sanitizer_symbolizer_report_fuchsia.cpp
+//-----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -14,8 +15,7 @@
 
 #if SANITIZER_SYMBOLIZER_MARKUP
 
-
-#include "sanitizer_common.h"
+#  include "sanitizer_common.h"
 
 namespace __sanitizer {
 void StartReportDeadlySignal() {}
@@ -28,6 +28,6 @@ void HandleDeadlySignal(void *siginfo, void *context, u32 tid,
                         UnwindSignalStackCallbackType unwind,
                         const void *unwind_context) {}
 
-} // namespace __sanitizer
+}  // namespace __sanitizer
 
 #endif  // SANITIZER_SYMBOLIZER_MARKUP

``````````

</details>


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


More information about the cfe-commits mailing list