[Lldb-commits] [lldb] [lldb][TypeSystemClang] Add support for floating point template argument constants (PR #127206)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 14 04:18:28 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 134a94ae0b6cb8dccf1114fb2eefb172e9697905...759f0569807d00a059a78aeb3bd1eddeffcbdf36 lldb/test/API/lang/cpp/template-arguments/TestCppTemplateArguments.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestCppTemplateArguments.py 2025-02-14 12:14:22.000000 +0000
+++ TestCppTemplateArguments.py 2025-02-14 12:17:53.809209 +0000
@@ -82,11 +82,13 @@
template_param_value = value.GetType().GetTemplateArgumentValue(target, 1)
self.assertEqual(template_param_value.GetTypeName(), "double")
# FIXME: this should return a float
self.assertEqual(template_param_value.GetValueAsSigned(), 1)
- value = self.expect_expr("temp8", result_type="Bar<float, 1.000000e+00, 2.000000e+00>")
+ value = self.expect_expr(
+ "temp8", result_type="Bar<float, 1.000000e+00, 2.000000e+00>"
+ )
template_param_value = value.GetType().GetTemplateArgumentValue(target, 1)
self.assertEqual(template_param_value.GetTypeName(), "float")
# FIXME: this should return a float
self.assertEqual(template_param_value.GetValueAsSigned(), 1)
``````````
</details>
https://github.com/llvm/llvm-project/pull/127206
More information about the lldb-commits
mailing list