[Lldb-commits] [lldb] [lldb-dap] Provide `declarationLocation` for variables (PR #102928)

via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 16 03:41:12 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...a740c6918fd4c0e47b6d266fbb2b217112405a4f 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 10:32:03.000000 +0000
+++ test/API/tools/lldb-dap/locations/TestDAP_locations.py	2024-08-16 10:40:40.367922 +0000
@@ -30,9 +30,11 @@
         locals = {l["name"]: l for l in self.dap_server.get_local_variables()}
 
         # var1 has a declarationLocation but no valueLocation
         self.assertIn("declarationLocationReference", locals["var1"].keys())
         self.assertNotIn("valueLocationReference", locals["var1"].keys())
-        loc_var1 = self.dap_server.request_locations(locals["var1"]["declarationLocationReference"])
+        loc_var1 = self.dap_server.request_locations(
+            locals["var1"]["declarationLocationReference"]
+        )
         self.assertTrue(loc_var1["success"])
         self.assertTrue(loc_var1["body"]["source"]["path"].endswith("main.c"))
         self.assertEqual(loc_var1["body"]["line"], 2)

``````````

</details>


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


More information about the lldb-commits mailing list