How to register uses for declarations which are outside of the current file?

David Nolden david.nolden.kdevelop at art-master.de
Sun Mar 20 16:03:39 UTC 2011


Am 14.03.2011 17:15 schrieb "Sven Brauch" <svenbrauch at googlemail.com>:
>
> Hi,
>
> I tried wrapping a context around every file, but for some reason that
> screws up about everything. So if possible, I'd like to avoid that.

In what way does it screw up?

> Could you maybe explain again which conditions must be met so a
> declaration can be found by findDeclaration()? I tried opening a new
> context when processing the import statement, then adding the imported
> files top-context into that newly opened one (using
> addImportedParentContext), but when doing a search for a declaration
> from the added context it apparently still fails. Why?

The declaration has to be in the symbol table, then it should work. Try
looking into findDeclaration and check at which point it fails.

Greetings, David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110320/2318405a/attachment-0001.html>


More information about the KDevelop-devel mailing list