[Lldb-commits] [lldb] [lldb][SBAPI] Add new SBType::GetTemplateParameterValue API (PR #126901)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 12 04:36:39 PST 2025
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 e258bca9505f35e0a22cb213a305eea9b76d11ea...d69bd14f285f5508abc35b60172efc8839b7c0fd lldb/test/API/lang/cpp/class-template-parameter-pack/TestTemplatePackArgs.py lldb/test/API/lang/cpp/template-arguments/TestCppTemplateArguments.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- template-arguments/TestCppTemplateArguments.py 2025-02-12 12:32:14.000000 +0000
+++ template-arguments/TestCppTemplateArguments.py 2025-02-12 12:36:03.909384 +0000
@@ -53,11 +53,11 @@
value = self.expect_expr("temp3", result_type="Foo<char, 'v'>")
template_param_value = value.GetType().GetTemplateArgumentValue(target, 1)
self.assertTrue(template_param_value)
self.assertEqual(template_param_value.GetTypeName(), "char")
- self.assertEqual(chr(template_param_value.GetValueAsSigned()), 'v')
+ self.assertEqual(chr(template_param_value.GetValueAsSigned()), "v")
# FIXME: type should be Foo<float, 2.0f>
# FIXME: double/float NTTP parameter values currently not supported.
value = self.expect_expr("temp4", result_type="Foo<float, float>")
template_param_value = value.GetType().GetTemplateArgumentValue(target, 1)
``````````
</details>
https://github.com/llvm/llvm-project/pull/126901
More information about the lldb-commits
mailing list