[llvm] [DWARF] Generalize DWARFTypePrinter to a template class (PR #109459)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 20 12:08:23 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 cead9044a995910306e2e64b426fcc8042d7e0ef 62ef8f1799ef26a8fc64f2cf6bfc901d3ef3270f --extensions h,cpp -- llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h
index 5315ac194f..f57f85fc42 100644
--- a/llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h
+++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h
@@ -584,7 +584,8 @@ bool DWARFTypePrinter<DieType>::appendTemplateParameters(DieType D,
 }
 
 template <typename DieType>
-void DWARFTypePrinter<DieType>::appendAndTerminateTemplateParameters(DieType D) {
+void DWARFTypePrinter<DieType>::appendAndTerminateTemplateParameters(
+    DieType D) {
   bool R = appendTemplateParameters(D);
   if (!R)
     return;

``````````

</details>


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


More information about the llvm-commits mailing list