[Lldb-commits] [lldb] [lldb][SBAPI] Add new SBType::GetTemplateParameterValue API (PR #126901)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 12 05:08:27 PST 2025
Michael137 wrote:
> > Perhaps we could just represent a template parameter as an SBValue instead?
>
> I'm not sure I understand. Do you mean, even for type template template parameters? How would that work? By creating an empty value of the given type? And how would we pass the "kind" of the template parameter? I don't think it makes sense adding it to the SBValue class..
>
> The current implementation seems okay to me, but if we wanted to create something fancier, then I think it'd be best to create a new SB class (SBTypeTemplateParameter?)
Yea `SBTypeTemplateParameter` was more along the lines of what I was thinking, if we wanted to unify these APIs
https://github.com/llvm/llvm-project/pull/126901
More information about the lldb-commits
mailing list