[Lldb-commits] [lldb] [LLDB] Fix crash in TypeSystemClang::GetIndexofChildMemberWithName. (PR #117808)

via lldb-commits lldb-commits at lists.llvm.org
Sun Dec 1 12:35:23 PST 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 8458bbe5947db75041579c7c1a0f7f79c8e992d9...59c71a9ea44f34ac1d4d074d0c91bc8291701dd3 lldb/test/API/commands/frame/var/anon-struct/TestFrameVarAnonStruct.py
``````````

</details>

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

``````````diff
--- TestFrameVarAnonStruct.py	2024-12-01 20:31:19.000000 +0000
+++ TestFrameVarAnonStruct.py	2024-12-01 20:34:50.096173 +0000
@@ -57,7 +57,10 @@
         frame = threads[0].GetFrameAtIndex(0)
         command_result = lldb.SBCommandReturnObject()
         interp = self.dbg.GetCommandInterpreter()
 
         # Verify that we don't crash in this case.
-        self.expect("frame variable 'b.x'", error=True,
-                    substrs=['"x" is not a member of "(B) b"'])
+        self.expect(
+            "frame variable 'b.x'",
+            error=True,
+            substrs=['"x" is not a member of "(B) b"'],
+        )

``````````

</details>


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


More information about the lldb-commits mailing list