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 6c17f1cabdee3399feceb478921a8369bde18b16...7e3d1420a941431de223098ee153d2d4c63cfbfc lldb/test/API/commands/dwim-print/TestDWIMPrint.py `````````` </details> <details> <summary> View the diff from darker here. </summary> ``````````diff --- TestDWIMPrint.py 2024-06-17 22:13:35.000000 +0000 +++ TestDWIMPrint.py 2024-06-17 22:16:56.929060 +0000 @@ -119,50 +119,40 @@ self.expect(f"dwim-print -- ", error=True, startstr=error_msg) def test_nested_values(self): """Test dwim-print with nested values (structs, etc).""" self.build() - lldbutil.run_to_source_breakpoint( - self, "break here", lldb.SBFileSpec("main.c") - ) + lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c")) self.runCmd("settings set auto-one-line-summaries false") self._expect_cmd(f"dwim-print s", "frame variable") self._expect_cmd(f"dwim-print (struct Structure)s", "expression") def test_summary_strings(self): """Test dwim-print with nested values (structs, etc).""" self.build() - lldbutil.run_to_source_breakpoint( - self, "break here", lldb.SBFileSpec("main.c") - ) + lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c")) self.runCmd("settings set auto-one-line-summaries false") self.runCmd("type summary add -e -s 'stub summary' Structure") self._expect_cmd(f"dwim-print s", "frame variable") self._expect_cmd(f"dwim-print (struct Structure)s", "expression") def test_void_result(self): """Test dwim-print does not surface an error message for void expressions.""" self.build() - lldbutil.run_to_source_breakpoint( - self, "break here", lldb.SBFileSpec("main.c") - ) + lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c")) self.expect("dwim-print (void)15", matching=False, patterns=["(?i)error"]) def test_preserves_persistent_variables(self): """Test dwim-print does not delete persistent variables.""" self.build() - lldbutil.run_to_source_breakpoint( - self, "break here", lldb.SBFileSpec("main.c") - ) + lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c")) self.expect("dwim-print int $i = 15") # Run the same expression twice and verify success. This ensures the # first command does not delete the persistent variable. for _ in range(2): self.expect("dwim-print $i", startstr="(int) 15") def test_missing_type(self): """The expected output of po opaque is its address (no error)""" self.build() - lldbutil.run_to_source_breakpoint( - self, "break here", lldb.SBFileSpec("main.c") - ) - self.expect("dwim-print -O -- opaque", substrs=['0x']) + lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c")) + self.expect("dwim-print -O -- opaque", substrs=["0x"]) `````````` </details> https://github.com/llvm/llvm-project/pull/95857 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits