[compiler-rt] [mlir] [libc] [clang] [llvm] [clang-tools-extra] [flang] [libcxx] [sanitizer_symbolizer] RenderContextual elements for symbolizer markup. (PR #73194)

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 28 13:20:04 PST 2023


=?utf-8?q?Andrés?= Villegas <andresvi at google.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/73194 at github.com>


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 a3529aa92ee48552946066330f5302281a49e447 a03c81be070eccb0e064af314d02216e76bab854 -- compiler-rt/test/sanitizer_common/TestCases/print-stack-trace-markup.cpp compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.h compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_fuchsia.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp
index cbd111e975..b2a1069a9a 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp
@@ -72,7 +72,6 @@ const char *MarkupSymbolizerTool::Demangle(const char *name) {
 // symbolization and pretty-print the markup.
 #if !SANITIZER_FUCHSIA
 
-
 static bool ModulesEq(const LoadedModule &module,
                       const RenderedModule &renderedModule) {
   return module.base_address() == renderedModule.base_address &&
@@ -152,7 +151,8 @@ void MarkupStackTracePrinter::RenderContext(InternalScopedString *buffer) {
 
     // kModuleUUIDSize is the size of curModule.uuid
     CHECK_GE(kModuleUUIDSize, module.uuid_size());
-    internal_memcpy(renderedModules_.back().uuid, module.uuid(), module.uuid_size());
+    internal_memcpy(renderedModules_.back().uuid, module.uuid(),
+                    module.uuid_size());
   }
 }
 #endif  // !SANITIZER_FUCHSIA

``````````

</details>


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


More information about the cfe-commits mailing list