DUChain and anonymous declarations

Sven Brauch svenbrauch at googlemail.com
Thu Apr 10 11:59:26 UTC 2014


On Thursday 10 April 2014 13:02:12 Denis Steckelmacher wrote:
> The only reason of why I need
> declarations is that ExpressionVisitor, given only a
> FunctionExpression*, must be able to find its type. As ExpressionVisitor
> is also used by the code completion model, I cannot store the type of
> anonymous functions outside the DUChain, the only thing (I think) that
> survives after DeclarationBuilder finishes its work.
Can you do something like
 top->findContextAt(node->pos)->owner()
maybe? Then the function would not need a name at all, at least.


More information about the KDevelop-devel mailing list