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 -- 
lldb/test/API/python_api/sbframe_extensions/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/python_api/sbframe_extensions/main.c 
b/lldb/test/API/python_api/sbframe_extensions/main.c
index 657a6524d..8e2d3ed8e 100644
--- a/lldb/test/API/python_api/sbframe_extensions/main.c
+++ b/lldb/test/API/python_api/sbframe_extensions/main.c
@@ -8,29 +8,26 @@ static int g_static_var = 100;
 int func1(int arg1, char arg2);
 int func2(int arg1, int arg2);
 
-int func1(int arg1, char arg2)
-{
-    static int static_var = 200;
-    int local1 = arg1 * 2;
-    char local2 = arg2;
-    // Set breakpoint here
-    return local1 + local2 + static_var;
+int func1(int arg1, char arg2) {
+  static int static_var = 200;
+  int local1 = arg1 * 2;
+  char local2 = arg2;
+  // Set breakpoint here
+  return local1 + local2 + static_var;
 }
 
-int func2(int arg1, int arg2)
-{
-    int local1 = arg1 + arg2;
-    int local2 = arg1 * arg2;
-    // Set breakpoint here
-    return func1(local1, 'X');
+int func2(int arg1, int arg2) {
+  int local1 = arg1 + arg2;
+  int local2 = arg1 * arg2;
+  // Set breakpoint here
+  return func1(local1, 'X');
 }
 
-int main(int argc, char const *argv[])
-{
-    int main_local = 10;
-    static int main_static = 50;
-    // Set breakpoint here
-    int result = func2(5, 7);
-    printf("Result: %d\n", result);
-    return 0;
+int main(int argc, char const *argv[]) {
+  int main_local = 10;
+  static int main_static = 50;
+  // Set breakpoint here
+  int result = func2(5, 7);
+  printf("Result: %d\n", result);
+  return 0;
 }

``````````

</details>


https://github.com/llvm/llvm-project/pull/169236
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to