[Lldb-commits] [clang] [lldb] [clang][lldb] Don't assert structure layout correctness for layouts provided by LLDB (PR #93809)
via lldb-commits
lldb-commits at lists.llvm.org
Thu May 30 04:54:17 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 971f1aaad3ca3680bfbab76212f498ca15b280a2...91276f5b2dc05032a285b465c0c8a69541bb25c4 lldb/test/API/lang/cpp/no_unique_address/TestNoUniqueAddress.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestNoUniqueAddress.py 2024-05-30 11:43:43.000000 +0000
+++ TestNoUniqueAddress.py 2024-05-30 11:53:51.778148 +0000
@@ -6,45 +6,62 @@
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
+
class NoUniqueAddressTestCase(TestBase):
def test(self):
self.build()
lldbutil.run_to_source_breakpoint(
self, "return 0", lldb.SBFileSpec("main.cpp", False)
)
# Qualified/unqualified lookup to templates in namespace
- self.expect_expr("b1", result_type="basic::Foo", result_children=[ValueCheck(
- name="a", type="Empty"
- )])
+ self.expect_expr(
+ "b1",
+ result_type="basic::Foo",
+ result_children=[ValueCheck(name="a", type="Empty")],
+ )
- self.expect_expr("b2", result_type="bases::Foo", result_children=[
- ValueCheck(type="bases::B", children=[
- ValueCheck(name="x", type="Empty")
- ]),
- ValueCheck(type="bases::A", children=[
- ValueCheck(name="c", type="long", value="1"),
- ValueCheck(name="d", type="long", value="2")
- ]),
- ValueCheck(type="bases::C", children=[
- ValueCheck(name="x", type="Empty")
- ]),
- ])
- self.expect_expr("b3", result_type="bases::Bar", result_children=[
- ValueCheck(type="bases::B", children=[
- ValueCheck(name="x", type="Empty")
- ]),
- ValueCheck(type="bases::C", children=[
- ValueCheck(name="x", type="Empty")
- ]),
- ValueCheck(type="bases::A", children=[
- ValueCheck(name="c", type="long", value="5"),
- ValueCheck(name="d", type="long", value="6")
- ]),
- ])
+ self.expect_expr(
+ "b2",
+ result_type="bases::Foo",
+ result_children=[
+ ValueCheck(
+ type="bases::B", children=[ValueCheck(name="x", type="Empty")]
+ ),
+ ValueCheck(
+ type="bases::A",
+ children=[
+ ValueCheck(name="c", type="long", value="1"),
+ ValueCheck(name="d", type="long", value="2"),
+ ],
+ ),
+ ValueCheck(
+ type="bases::C", children=[ValueCheck(name="x", type="Empty")]
+ ),
+ ],
+ )
+ self.expect_expr(
+ "b3",
+ result_type="bases::Bar",
+ result_children=[
+ ValueCheck(
+ type="bases::B", children=[ValueCheck(name="x", type="Empty")]
+ ),
+ ValueCheck(
+ type="bases::C", children=[ValueCheck(name="x", type="Empty")]
+ ),
+ ValueCheck(
+ type="bases::A",
+ children=[
+ ValueCheck(name="c", type="long", value="5"),
+ ValueCheck(name="d", type="long", value="6"),
+ ],
+ ),
+ ],
+ )
self.expect("frame var b1")
self.expect("frame var b2")
self.expect("frame var b3")
``````````
</details>
https://github.com/llvm/llvm-project/pull/93809
More information about the lldb-commits
mailing list