code completion question

Jens Dagerbo jens.dagerbo at swipnet.se
Wed Jan 5 15:31:43 GMT 2005


On Wednesday 05 January 2005 12.34, Thomas Porschberg wrote:
> I have two question regarding code completion in
> version 3.1.0.
>
> 1) speed question
>
>    Look at this code in a local method:
>
>    {
>      int tmi;
>      std::vector<int> tmp;
>      ...
>    }
>
>    Then I type "Ctrl+Space" it takes about 10 seconds until the
>    possibilities "tmi" and "tmp" are offered(on recent hardware).
>
>    Is this the expected delay time ?

With no external Code Completion databases active, I get instant results in a 
comparable project.


> 2) If I type:
>    std::vector<int> tmp;
>
>    the several methods for the vector container are offered to me.
>
>    However if I type:
>    vector<int> tmp;
>    and provide the using directive "using std::vector"
>    no methods are offered and in the status bar I see
>    "Type of tmp. is vector"

Yup. "vector". Which the CC mechanism has no clue what it is. It's too dumb to 
recognize it as "std::vector".

One of many limitations of the current CC implementation. See bugs.kde.org for 
several others.


>    I would suspect that in this case the methods are offered too to me.

Not at all unreasonable. ;)


jd

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list