https://bugs.llvm.org/show_bug.cgi?id=33760

            Bug ID: 33760
           Summary: LLDB's SBType's template functions don't work for
                    template parameter packs
           Product: new-bugs
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: m...@kkaefer.com
                CC: llvm-bugs@lists.llvm.org

Consider these two types and their instantiations:

template <class A, class B> class Foo {};
template <class...> class Bar {};

Foo<int, float> foo;
Bar<int, float> bar;

When inspecting types in LLDB, val.GetType().GetNumberOfTemplateArguments()
returns 2 for val `foo`, but it returns 0 for val `bar`. There doesn't seem to
be a way to access the template arguments programmatically through SBType.

Instead of return 0 for variadic templates, it should return the actual number
of template arguments, and GetTemplateArgumentType(I) should return the
corresponding SBType for the particular instantiation.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to