[Lldb-commits] [lldb] [lldb][test] TestExprCompletion.py: add tests for completion of reserved identifiers (PR #84890)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 12 03:08:53 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 6c39fa9e9f198498ff7cf9646081437a0fc0882a...ecb8e2744628207dd0ec72272428e3f57e8d68bb lldb/test/API/commands/expression/completion/TestExprCompletion.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestExprCompletion.py 2024-03-12 10:04:12.000000 +0000
+++ TestExprCompletion.py 2024-03-12 10:08:45.666282 +0000
@@ -244,23 +244,14 @@
)
self.complete_from_to(
"expr some_expr.Self(). FooNoArgs", "expr some_expr.Self(). FooNoArgsBar()"
)
- self.complete_from_to(
- "expr myVec.__f", "expr myVec.__func()"
- )
- self.complete_from_to(
- "expr myVec._F", "expr myVec._Func()"
- )
- self.complete_from_to(
- "expr myVec.__m", "expr myVec.__mem"
- )
- self.complete_from_to(
- "expr myVec._M", "expr myVec._Mem"
- )
-
+ self.complete_from_to("expr myVec.__f", "expr myVec.__func()")
+ self.complete_from_to("expr myVec._F", "expr myVec._Func()")
+ self.complete_from_to("expr myVec.__m", "expr myVec.__mem")
+ self.complete_from_to("expr myVec._M", "expr myVec._Mem")
def test_expr_completion_with_descriptions(self):
self.build()
self.main_source = "main.cpp"
self.main_source_spec = lldb.SBFileSpec(self.main_source)
``````````
</details>
https://github.com/llvm/llvm-project/pull/84890
More information about the lldb-commits
mailing list