Skip to content

Templated class are not properly parsed. - #251

Merged
SergiusTheBest merged 2 commits into
SergiusTheBest:masterfrom
fbriol:master
Apr 20, 2023
Merged

Templated class are not properly parsed.#251
SergiusTheBest merged 2 commits into
SergiusTheBest:masterfrom
fbriol:master

Conversation

@fbriol

@fbriol fbriol commented Apr 20, 2023

Copy link
Copy Markdown
Contributor

The function names of the class templates are badly parsed, as the > character is not processed.

For example, the following example log

template <typename T, typename U>
class MyTemplateClass
{
public:
    MyTemplateClass(T t1, U t2)
        : m_t1(t1)
        , m_t2(t2)
    {
    }

    inline void inlineMethod()
    {
        PLOGD;
    }
private:
    T m_t1;
    U m_t2;
};

MyTemplateClass(1, 2).inlineMethod();
2023-04-20 12:12:44.836 DEBUG [97136] [U>::inlineMethod@34]

instead of

2023-04-20 12:12:44.836 DEBUG [97136] [MyTemplateClass<T, U>::inlineMethod@34]

@SergiusTheBest SergiusTheBest self-assigned this Apr 20, 2023
@SergiusTheBest SergiusTheBest added this to the 1.1.10 milestone Apr 20, 2023
@SergiusTheBest
SergiusTheBest merged commit f91a90d into SergiusTheBest:master Apr 20, 2023
@SergiusTheBest

Copy link
Copy Markdown
Owner

@fbriol Nice! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants