Some DUChain related questions

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

David Nolden, 09.11.2010:
> 2010/11/9 Sven Brauch <svenbrauch at>:
> > usebuilder source code:
> >
> > .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:
> >
> > 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
-------------- 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: <>

More information about the KDevelop-devel mailing list