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

            Bug ID: 371217
           Summary: Code completion for templated classes is incorrect
           Product: kdevelop
           Version: 5.0.2
          Platform: Appimage
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: code completion
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: master.ha...@gmail.com

it seems like all? templated code in qt (QList,QVector,QPair,QMap...) does not
get the correct responses from the code completion.

When getting code completion for one of these classes, it properly gives a list
of all functions, but it does not mark them as functions, same thing happens
for qpair's member variables(first,second). Instead the completion thinks they
are just text. hitting enter on one of them will just put in the text, but does
not act like a method normally acts(adding parenthesis, etc).

the detailed completion recognizes the functions and return types etc, but
still does not mark them with the function or variable type(gray or purple
symbol), and does the same thing as above.


Reproducible: Always

Steps to Reproduce:
1. declare any templated class on the stack in a function:
void foo()
{
 QList<int> bar;
}

2. attempt to use the variable and ask for code completion, detailed or not:
int i=bar. {ctrl+space)


Actual Results:  
code completion will appear, but it thinks none of the methods are methods and
none of the variables are variables.

Expected Results:  
The code completion should detect what are methods and variables and act as
such, like it does for every non-templated class( QDir, QString, QDateTime,
QFile...)

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

Reply via email to