[Lldb-commits] [lldb] [lldb] Support dSYMs as modules (PR #77966)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 12 11:22:17 PST 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 dd5ce4572fb90323799f1bdf585c01d08613e277 aa8cda04994699b23df3b5dd149d9204272aa74b -- lldb/test/API/macosx/dsym-module/main.c lldb/include/lldb/Symbol/ObjectFile.h lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h lldb/source/Symbol/ObjectFile.cpp lldb/source/Target/Target.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
index d623476c4c..b5ecc68239 100644
--- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
@@ -6128,7 +6128,7 @@ Section *ObjectFileMachO::GetMachHeaderSection() {
return nullptr;
}
-bool ObjectFileMachO::CanBeTarget(Status *status ) {
+bool ObjectFileMachO::CanBeTarget(Status *status) {
if (m_header.filetype == MH_DSYM)
return true;
return ObjectFile::CanBeTarget(status);
diff --git a/lldb/test/API/macosx/dsym-module/main.c b/lldb/test/API/macosx/dsym-module/main.c
index b5c9a5152d..9cbfa1591e 100644
--- a/lldb/test/API/macosx/dsym-module/main.c
+++ b/lldb/test/API/macosx/dsym-module/main.c
@@ -1,5 +1,3 @@
#include <stdio.h>
-int main(int argc, char const *argv[]) {
- return argc + 1;
-}
+int main(int argc, char const *argv[]) { return argc + 1; }
``````````
</details>
https://github.com/llvm/llvm-project/pull/77966
More information about the lldb-commits
mailing list