[Lldb-commits] [lldb] [lldb-dap] Implement value locations for function pointers (PR #104589)

via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 16 06:38:13 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r 82ee31f75ac1316006fa9e21dddfddec37cf7072...b0fee0c0c32001064aeab1ebca209fef02c6cb98 lldb/test/API/tools/lldb-dap/locations/TestDAP_locations.py lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- test/API/tools/lldb-dap/locations/TestDAP_locations.py	2024-08-16 13:33:34.000000 +0000
+++ test/API/tools/lldb-dap/locations/TestDAP_locations.py	2024-08-16 13:37:41.864335 +0000
@@ -44,11 +44,13 @@
         self.assertIn("valueLocationReference", locals["func_ptr"].keys())
         decl_loc_func_ptr = self.dap_server.request_locations(
             locals["func_ptr"]["declarationLocationReference"]
         )
         self.assertTrue(decl_loc_func_ptr["success"])
-        self.assertTrue(decl_loc_func_ptr["body"]["source"]["path"].endswith("main.cpp"))
+        self.assertTrue(
+            decl_loc_func_ptr["body"]["source"]["path"].endswith("main.cpp")
+        )
         self.assertEqual(decl_loc_func_ptr["body"]["line"], 9)
         val_loc_func_ptr = self.dap_server.request_locations(
             locals["func_ptr"]["valueLocationReference"]
         )
         self.assertTrue(val_loc_func_ptr["success"])
@@ -60,11 +62,13 @@
         self.assertIn("valueLocationReference", locals["func_ref"].keys())
         decl_loc_func_ref = self.dap_server.request_locations(
             locals["func_ref"]["declarationLocationReference"]
         )
         self.assertTrue(decl_loc_func_ref["success"])
-        self.assertTrue(decl_loc_func_ref["body"]["source"]["path"].endswith("main.cpp"))
+        self.assertTrue(
+            decl_loc_func_ref["body"]["source"]["path"].endswith("main.cpp")
+        )
         self.assertEqual(decl_loc_func_ref["body"]["line"], 10)
         val_loc_func_ref = self.dap_server.request_locations(
             locals["func_ref"]["valueLocationReference"]
         )
         self.assertTrue(val_loc_func_ref["success"])

``````````

</details>


https://github.com/llvm/llvm-project/pull/104589


More information about the lldb-commits mailing list