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 origin/main HEAD --extensions c,cpp --
lldb/test/API/api/listeners/main.c
lldb/test/API/commands/expression/ir-interpreter/main.c
lldb/test/API/commands/expression/radar_9673664/main.c
lldb/test/API/commands/expression/top-level/dummy.cpp
lldb/test/API/commands/expression/weak_symbols/main.c
lldb/test/API/functionalities/asan/main.c
lldb/test/API/functionalities/memory-region/main.cpp
lldb/test/API/functionalities/object-file/bin/hello.c
lldb/test/API/functionalities/object-file/bin/hello.cpp
lldb/test/API/functionalities/process_save_core_minidump/main.cpp
lldb/test/API/functionalities/step-vrs-interrupt/main.cpp
lldb/test/API/functionalities/thread/create_after_attach/main.cpp
lldb/test/API/functionalities/tsan/thread_leak/main.c
lldb/test/API/lang/c/const_variables/main.c
lldb/test/API/macosx/profile_vrs_detach/main.c
lldb/test/API/python_api/breakpoint/main.c
lldb/test/API/python_api/process/address-masks/main.c
lldb/test/API/python_api/unified_section_list/main.cpp
lldb/test/API/tools/lldb-dap/cancel/main.c
lldb/test/API/tools/lldb-dap/eventStatistic/main.cpp
lldb/test/API/tools/lldb-dap/locations/main.cpp
lldb/test/API/tools/lldb-dap/restart/main.c
lldb/test/API/tools/lldb-dap/send-event/main.c
lldb/test/API/tools/lldb-dap/stackTrace/subtleFrames/main.cpp
lldb/test/API/tools/lldb-dap/startDebugging/main.c
lldb/test/API/tools/lldb-dap/terminated-event/main.cpp
lldb/test/API/tools/lldb-dap/unknown/main.c --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/test/API/api/listeners/main.c
b/lldb/test/API/api/listeners/main.c
index df67b9156..237c8ce18 100644
--- a/lldb/test/API/api/listeners/main.c
+++ b/lldb/test/API/api/listeners/main.c
@@ -1,4 +1 @@
-int
-main()
-{
-}
+int main() {}
diff --git a/lldb/test/API/commands/expression/ir-interpreter/main.c
b/lldb/test/API/commands/expression/ir-interpreter/main.c
index fcf46a18b..e9ba8a9fd 100644
--- a/lldb/test/API/commands/expression/ir-interpreter/main.c
+++ b/lldb/test/API/commands/expression/ir-interpreter/main.c
@@ -1,4 +1,4 @@
int main()
{
- return 0; // Set breakpoint here
+ return 0; // Set breakpoint here
}
diff --git a/lldb/test/API/commands/expression/radar_9673664/main.c
b/lldb/test/API/commands/expression/radar_9673664/main.c
index 11fbb32bd..aaf84697f 100644
--- a/lldb/test/API/commands/expression/radar_9673664/main.c
+++ b/lldb/test/API/commands/expression/radar_9673664/main.c
@@ -1,6 +1,6 @@
int main (int argc, char const *argv[])
{
- return 0; // Set breakpoint here.
-
- return 0;
+ return 0; // Set breakpoint here.
+
+ return 0;
}
diff --git a/lldb/test/API/commands/expression/weak_symbols/main.c
b/lldb/test/API/commands/expression/weak_symbols/main.c
index 0689c31be..1eda5a611 100644
--- a/lldb/test/API/commands/expression/weak_symbols/main.c
+++ b/lldb/test/API/commands/expression/weak_symbols/main.c
@@ -15,7 +15,6 @@ doSomething()
sink = present_weak_int;
if (present_weak_function != 0)
sinkPtr = present_weak_function;
-
}
int
diff --git a/lldb/test/API/functionalities/memory-region/main.cpp
b/lldb/test/API/functionalities/memory-region/main.cpp
index 14478f0c7..175494b83 100644
--- a/lldb/test/API/functionalities/memory-region/main.cpp
+++ b/lldb/test/API/functionalities/memory-region/main.cpp
@@ -1,3 +1,3 @@
-int main (int argc, char const **argv) {
+int main(int argc, char const **argv) {
return 0; // Run here before printing memory regions
}
diff --git a/lldb/test/API/functionalities/object-file/bin/hello.c
b/lldb/test/API/functionalities/object-file/bin/hello.c
index d6d52c9cb..0314ff17b 100644
--- a/lldb/test/API/functionalities/object-file/bin/hello.c
+++ b/lldb/test/API/functionalities/object-file/bin/hello.c
@@ -1,5 +1 @@
-int main(int argc, char **argv)
-{
- return 0;
-}
-
+int main(int argc, char **argv) { return 0; }
diff --git a/lldb/test/API/functionalities/object-file/bin/hello.cpp
b/lldb/test/API/functionalities/object-file/bin/hello.cpp
index d6d52c9cb..0314ff17b 100644
--- a/lldb/test/API/functionalities/object-file/bin/hello.cpp
+++ b/lldb/test/API/functionalities/object-file/bin/hello.cpp
@@ -1,5 +1 @@
-int main(int argc, char **argv)
-{
- return 0;
-}
-
+int main(int argc, char **argv) { return 0; }
diff --git a/lldb/test/API/functionalities/step-vrs-interrupt/main.cpp
b/lldb/test/API/functionalities/step-vrs-interrupt/main.cpp
index 15f4e0475..ab08ba31f 100644
--- a/lldb/test/API/functionalities/step-vrs-interrupt/main.cpp
+++ b/lldb/test/API/functionalities/step-vrs-interrupt/main.cpp
@@ -1,9 +1,7 @@
#include <chrono>
#include <thread>
-void call_me() {
- std::this_thread::sleep_for(std::chrono::seconds(3));
-}
+void call_me() { std::this_thread::sleep_for(std::chrono::seconds(3)); }
int
main()
diff --git a/lldb/test/API/functionalities/thread/create_after_attach/main.cpp
b/lldb/test/API/functionalities/thread/create_after_attach/main.cpp
index caf53fd82..d3490269b 100644
--- a/lldb/test/API/functionalities/thread/create_after_attach/main.cpp
+++ b/lldb/test/API/functionalities/thread/create_after_attach/main.cpp
@@ -56,5 +56,4 @@ int main(int argc, char const *argv[])
// Wait for the threads to finish.
thread_1.join();
thread_2.join();
-
}
diff --git a/lldb/test/API/functionalities/tsan/thread_leak/main.c
b/lldb/test/API/functionalities/tsan/thread_leak/main.c
index f8ba2851a..123b0edca 100644
--- a/lldb/test/API/functionalities/tsan/thread_leak/main.c
+++ b/lldb/test/API/functionalities/tsan/thread_leak/main.c
@@ -1,9 +1,7 @@
#include <pthread.h>
#include <stdlib.h>
-void *f1(void *p) {
- return NULL;
-}
+void *f1(void *p) { return NULL; }
int main (int argc, char const *argv[])
{
diff --git a/lldb/test/API/lang/c/const_variables/main.c
b/lldb/test/API/lang/c/const_variables/main.c
index d135f14da..4e45673c9 100644
--- a/lldb/test/API/lang/c/const_variables/main.c
+++ b/lldb/test/API/lang/c/const_variables/main.c
@@ -12,8 +12,7 @@ int main()
index = 512;
- if (bar())
- {
+ if (bar()) {
index = 256;
}
diff --git a/lldb/test/API/python_api/breakpoint/main.c
b/lldb/test/API/python_api/breakpoint/main.c
index b5265eddb..f89bd526d 100644
--- a/lldb/test/API/python_api/breakpoint/main.c
+++ b/lldb/test/API/python_api/breakpoint/main.c
@@ -1,7 +1,4 @@
-void
-AFunction()
-{
-}
+void AFunction() {}
int
main ()
diff --git a/lldb/test/API/tools/lldb-dap/cancel/main.c
b/lldb/test/API/tools/lldb-dap/cancel/main.c
index 3e4e63d6b..06e216a2f 100644
--- a/lldb/test/API/tools/lldb-dap/cancel/main.c
+++ b/lldb/test/API/tools/lldb-dap/cancel/main.c
@@ -1,3 +1 @@
-int main(int argc, char const *argv[]) {
- return 0;
-}
+int main(int argc, char const *argv[]) { return 0; }
diff --git a/lldb/test/API/tools/lldb-dap/unknown/main.c
b/lldb/test/API/tools/lldb-dap/unknown/main.c
index 4cce7f667..76e819701 100644
--- a/lldb/test/API/tools/lldb-dap/unknown/main.c
+++ b/lldb/test/API/tools/lldb-dap/unknown/main.c
@@ -1,3 +1 @@
-int main() {
- return 0;
-}
+int main() { return 0; }
``````````
</details>
https://github.com/llvm/llvm-project/pull/204072
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits