Why is "Show uses" sometimes so slow?

Milian Wolff mail at milianw.de
Wed May 30 16:05:38 UTC 2012


On Wednesday 30 May 2012 17:03:43 Steffen Ohrendorf wrote:
> Am Mittwoch, 30. Mai 2012, 13:49:07 schrieb Milian Wolff:
> > As soon as you want to find uses though, all potential files must be
> > reparsed with the AllDeclarationsContextsUses flag which takes time but is
> > the only "correct" way to find *all* uses of a given declaration.
> 
> Maybe I'm wrong, but to me it seems that when I search for uses, KDevelop
> scans _all_ files, even those where the declaration isn't imported. This
> might be due to the availability of forward declarations, but if this is
> the case, do these files get a lower priority?

How should it know whether a use of "ClassABC" in a given file is actually a 
forward declaration or maybe even just part of a comment, if it didn't pares 
that file yet?

What it shouldn't do is parsing a file where "ClassABC" does not occur 
anywhere.

Bye
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20120530/2de62cdb/attachment.sig>


More information about the KDevelop-devel mailing list