[llvm-bugs] [Bug 32508] New: libclang does not provide a way to get "partially applied" template arguments inside template alias definition

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 3 10:09:06 PDT 2017


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

            Bug ID: 32508
           Summary: libclang does not provide a way to get "partially
                    applied" template arguments inside template alias
                    definition
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nfitzgerald at mozilla.com
                CC: klimek at google.com, llvm-bugs at lists.llvm.org

Given this test case, libclang does not provide any method to get the `int`
template argument in the instantiation of `Foo` inside `FooInt`'s definition.

It cannot be discovered via `clang_Type_getTemplateArgumentAsType` nor
`clang_visitChildren`.

```

    template <typename T, typename U>
    struct Foo {
        T t;
        U u;
    };

    template <typename V>
    using FooInt = Foo<V, int>;

```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170403/2cd57cc7/attachment-0001.html>


More information about the llvm-bugs mailing list