[Lldb-commits] [lldb] [lldb][ClangExpressionParser] Don't by default enable Objecitve-C support when evaluating C++ expressions (PR #87767)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 5 04:02:51 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 a1f4ac7704255627ac33ad67a22be5ac030f6179...f27a547ab85463f182ab63949bb6f11140a2f33f lldb/test/API/lang/objcxx/objc-from-cpp-frames-without-debuginfo/TestObjCFromCppFramesWithoutDebugInfo.py lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py lldb/test/API/commands/expression/options/TestExprOptions.py lldb/test/API/lang/objcxx/objc-builtin-types/TestObjCBuiltinTypes.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- lang/objcxx/objc-builtin-types/TestObjCBuiltinTypes.py 2024-04-05 10:58:48.000000 +0000
+++ lang/objcxx/objc-builtin-types/TestObjCBuiltinTypes.py 2024-04-05 11:02:23.523228 +0000
@@ -49,9 +49,6 @@
self.expect(
"expr --language Objective-C++ -- id my_id = 0; my_id",
patterns=["\(id\) \$.* = nil"],
)
- self.expect(
- "expr --language C++ -- id my_id = 0; my_id",
- error=True
- )
+ self.expect("expr --language C++ -- id my_id = 0; my_id", error=True)
--- lang/objcxx/objc-from-cpp-frames-without-debuginfo/TestObjCFromCppFramesWithoutDebugInfo.py 2024-04-05 10:58:48.000000 +0000
+++ lang/objcxx/objc-from-cpp-frames-without-debuginfo/TestObjCFromCppFramesWithoutDebugInfo.py 2024-04-05 11:02:23.536024 +0000
@@ -6,10 +6,11 @@
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
+
class TestObjCFromCppFramesWithoutDebugInfo(TestBase):
def test(self):
self.build()
(_, process, _, _) = lldbutil.run_to_name_breakpoint(self, "main")
``````````
</details>
https://github.com/llvm/llvm-project/pull/87767
More information about the lldb-commits
mailing list