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 fb0c705dbf27e3ab84d726ad30e172806a530c21 6fb19a05a6a4fb4463035bcd35a53fc51e446a05 -- lldb/test/API/functionalities/target-new-solib-notifications/a.cpp lldb/test/API/functionalities/target-new-solib-notifications/b.cpp lldb/test/API/functionalities/target-new-solib-notifications/c.cpp lldb/test/API/functionalities/target-new-solib-notifications/d.cpp lldb/test/API/functionalities/target-new-solib-notifications/main.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/lldb/test/API/functionalities/target-new-solib-notifications/a.cpp b/lldb/test/API/functionalities/target-new-solib-notifications/a.cpp index 5d0ab4030e..88c59bd7be 100644 --- a/lldb/test/API/functionalities/target-new-solib-notifications/a.cpp +++ b/lldb/test/API/functionalities/target-new-solib-notifications/a.cpp @@ -1,14 +1,7 @@ extern "C" int b_function(); -int a_init() -{ - return 234; -} +int a_init() { return 234; } int a_global = a_init(); -extern "C" int -a_function () -{ - return b_function (); -} +extern "C" int a_function() { return b_function(); } diff --git a/lldb/test/API/functionalities/target-new-solib-notifications/b.cpp b/lldb/test/API/functionalities/target-new-solib-notifications/b.cpp index ddb2d97fbd..908282f06a 100644 --- a/lldb/test/API/functionalities/target-new-solib-notifications/b.cpp +++ b/lldb/test/API/functionalities/target-new-solib-notifications/b.cpp @@ -1,9 +1,5 @@ -int b_init() -{ - return 345; -} +int b_init() { return 345; } int b_global = b_init(); -extern "C" -int b_function() { return 500; } +extern "C" int b_function() { return 500; } diff --git a/lldb/test/API/functionalities/target-new-solib-notifications/c.cpp b/lldb/test/API/functionalities/target-new-solib-notifications/c.cpp index 13ab26b4c4..8abd1b155a 100644 --- a/lldb/test/API/functionalities/target-new-solib-notifications/c.cpp +++ b/lldb/test/API/functionalities/target-new-solib-notifications/c.cpp @@ -1,5 +1 @@ -extern "C" int -c_function () -{ - return 600; -} +extern "C" int c_function() { return 600; } diff --git a/lldb/test/API/functionalities/target-new-solib-notifications/d.cpp b/lldb/test/API/functionalities/target-new-solib-notifications/d.cpp index 13f9934745..85882b4ce9 100644 --- a/lldb/test/API/functionalities/target-new-solib-notifications/d.cpp +++ b/lldb/test/API/functionalities/target-new-solib-notifications/d.cpp @@ -1,7 +1,4 @@ -int d_init() -{ - return 123; -} +int d_init() { return 123; } int d_global = d_init(); diff --git a/lldb/test/API/functionalities/target-new-solib-notifications/main.cpp b/lldb/test/API/functionalities/target-new-solib-notifications/main.cpp index f7c4555e02..9efac88643 100644 --- a/lldb/test/API/functionalities/target-new-solib-notifications/main.cpp +++ b/lldb/test/API/functionalities/target-new-solib-notifications/main.cpp @@ -1,12 +1,11 @@ #include <stdio.h> -extern "C" int a_function (); -extern "C" int c_function (); -extern "C" int b_function (); -extern "C" int d_function (); +extern "C" int a_function(); +extern "C" int c_function(); +extern "C" int b_function(); +extern "C" int d_function(); -int main () -{ +int main() { a_function(); b_function(); c_function(); `````````` </details> https://github.com/llvm/llvm-project/pull/94672 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits