[Lldb-commits] [libcxxabi] [lldb] [llvm] [WIP: DO NOT MERGE] [lldb][Format] Add option to highlight function names in backtraces (PR #131836)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 18 09:10:02 PDT 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 0a21ef9536e0f591d334b230bd388bcb503e27ec 5656cdd65048c0af5482aef7de1e163dd078d437 --extensions h,cpp -- libcxxabi/src/demangle/ItaniumDemangle.h libcxxabi/src/demangle/Utility.h lldb/include/lldb/Core/FormatEntity.h lldb/include/lldb/Core/Mangled.h lldb/include/lldb/Symbol/Function.h lldb/include/lldb/Target/Language.h lldb/source/Core/FormatEntity.cpp lldb/source/Core/Mangled.cpp lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.h lldb/source/Symbol/Function.cpp lldb/source/Target/Language.cpp llvm/include/llvm/Demangle/Demangle.h llvm/include/llvm/Demangle/ItaniumDemangle.h llvm/include/llvm/Demangle/Utility.h llvm/lib/Demangle/ItaniumDemangle.cpp llvm/unittests/Demangle/ItaniumDemangleTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp b/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
index ef4400e73d..cf0f632912 100644
--- a/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
+++ b/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
@@ -230,7 +230,8 @@ static bool PrettyPrintFunctionNameWithArgs(
// Dump anything between the basename and the argument list.
if (demangled_info.ArgumentLocs.first > base_end)
- out_stream.PutCString(full_name.substr(base_end, demangled_info.ArgumentLocs.first - base_end));
+ out_stream.PutCString(full_name.substr(
+ base_end, demangled_info.ArgumentLocs.first - base_end));
// Dump arguments.
out_stream.PutChar('(');
``````````
</details>
https://github.com/llvm/llvm-project/pull/131836
More information about the lldb-commits
mailing list