Some DUChain related questions

Milian Wolff mail at milianw.de
Wed Nov 10 19:54:52 UTC 2010


David Nolden, 09.11.2010:
> 2010/11/9 Sven Brauch <svenbrauch at googlemail.com>:
> > usebuilder source code:
> > https://github.com/scummos/kdevelop-python/blob/master/duchain/usebuilder
> > .cpp As can be seen in the second image, declarations from the class
> > context are imported into the function. This is not correct for python.
> > I already removed the statement of which I thought would do that, but
> > nothing changed. What to do here? The contextbuilder code:
> > https://github.com/scummos/kdevelop-python/blob/master/duchain/contextbui
> > lder.cpp#L213 My UseBuilder.buildUses() calls functions from the
> > contextbuilder. Is that
> 
> > correct? Looks very strange to me, as this is a seperate build pass. See:
> Unfortunately, all the builders inherit each other (at least in C++),
> which creates a slightly hard to overview code-flow. It should be fine
> for the use-builder to call context-builder functions, as the
> use-builder is run in a second pass, and is 'driven' by the
> context-builder which traverses the AST and duchain hierarchy
> synchronously.

see also: compilingContexts() in abstract context builder
-- 
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/20101110/52c5bc63/attachment.sig>


More information about the KDevelop-devel mailing list