[Lldb-commits] [lldb] [lldb] Change synthetic symbol names to have file address (PR #138416)
via lldb-commits
lldb-commits at lists.llvm.org
Sat May 3 10:16:16 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 HEAD~1 HEAD --extensions c,cpp,h -- lldb/test/API/python_api/unnamed_symbol_lookup/main.c lldb/include/lldb/Symbol/Symbol.h lldb/source/Symbol/Symbol.cpp lldb/source/Symbol/Symtab.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Symbol/Symtab.cpp b/lldb/source/Symbol/Symtab.cpp
index 52545f223..9a3e8476f 100644
--- a/lldb/source/Symbol/Symtab.cpp
+++ b/lldb/source/Symbol/Symtab.cpp
@@ -654,8 +654,8 @@ uint32_t Symtab::GetNameIndexes(ConstString symbol_name,
if (count)
return count;
// Synthetic symbol names are not added to the name indexes, but they start
- // with a prefix and end with the symbol file address. This allows users to find
- // these symbols without having to add them to the name indexes. These
+ // with a prefix and end with the symbol file address. This allows users to
+ // find these symbols without having to add them to the name indexes. These
// queries will not happen very often since the names don't mean anything, so
// performance is not paramount in this case.
llvm::StringRef name = symbol_name.GetStringRef();
diff --git a/lldb/test/API/python_api/unnamed_symbol_lookup/main.c b/lldb/test/API/python_api/unnamed_symbol_lookup/main.c
index 1c9ce8e0e..ec8350706 100644
--- a/lldb/test/API/python_api/unnamed_symbol_lookup/main.c
+++ b/lldb/test/API/python_api/unnamed_symbol_lookup/main.c
@@ -1,10 +1,6 @@
-__attribute__((nodebug)) int stripped_function(int val)
-{
- return val * val;
-}
+__attribute__((nodebug)) int stripped_function(int val) { return val * val; }
-int main (void)
-{
+int main(void) {
stripped_function(10);
return 0;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/138416
More information about the lldb-commits
mailing list