https://bugs.kde.org/show_bug.cgi?id=371217

Gaël Le Baccon <gael.lebac...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gael.lebac...@gmail.com
            Version|5.0.2                       |5.2.4
     Ever confirmed|0                           |1
             Status|REPORTED                    |CONFIRMED

--- Comment #1 from Gaël Le Baccon <gael.lebac...@gmail.com> ---
In fact the code completion is " partially broken" for all template type not
just for Qt.

Steps to reproduce:

template<class T>
class Foo
{
public:
    void bar(int i);
};

Foo<int> foo;
foo. {ctrl + space}


It's because in ClangCodeCompletionContext::completionItems the
clang_getCompletionParent function return "Foo" for "bar" function so the
QualifiedIdentifier is "Foo::bar" when the KDevelop::Declaration
QualifiedIdentifier is "Foo< T >::bar".

As the declaration identifier does not match, KDevelop does not find
informations extracted during parse process and create simple completion item
with minimal information.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to