[Lldb-commits] [lldb] [lldb] Improve summary string handling of dollar chars (PR #98190)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Jul 9 10:12:58 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 822a818786ccd726e20e2b12cbcccbf9a8f23d4c...24f2c8ee442b67bae4b78543f54cae4b026f3862 lldb/test/API/functionalities/data-formatter/special-chars/TestSummaryStringSpecialChars.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestSummaryStringSpecialChars.py 2024-07-09 17:08:42.000000 +0000
+++ TestSummaryStringSpecialChars.py 2024-07-09 17:12:36.183515 +0000
@@ -3,11 +3,10 @@
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class TestCase(TestBase):
-
def test_summary_string_with_bare_dollar_char(self):
self.build()
lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c"))
self.runCmd("type summary add --summary-string '$ $CASH $' --no-value Dollars")
self.expect("v cash", startstr="(Dollars) cash = $ $CASH $")
``````````
</details>
https://github.com/llvm/llvm-project/pull/98190
More information about the lldb-commits
mailing list