Skip to content

Template Parameters on Functions with a Templated Namespace are not gathered #5

Open
@Joshua2000B

Description

@Joshua2000B

When defining a template parameter on a function, if the function is in the namespace of a templatable class, the template parameter of the function is not gathered.

template <typename T>
T cls::foo() {}

template <typename R>
R cls<R>::bar() {}

When nameCollector is run on the above code, the output is:

The following 3 user defined identifiers occur:
T is a template-parameter in file: nc_test.cpp at 1:20
foo is a T function in file: nc_test.cpp at 2:8
bar is a R function in file: nc_test.cpp at 5:11

There should be a 4th line, stating:

R is a template-parameter in file: nc_test.cpp at 4:20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions