Debugger: should expressionUnderCursor use the DUCain?

Niko Sams niko.sams at gmail.com
Sun Mar 21 13:59:22 UTC 2010


On Sun, Mar 21, 2010 at 14:52, David Nolden <zwabel at googlemail.com> wrote:
> Am Sonntag 21 März 2010 14:24:34 schrieb Niko Sams:
>> You mean something like this:
>> if (chain && chain->findContextAt(pos)) {
>>    //use chain->findContextAt(pos)->findDeclarationAt(pos);
>> } else {
>>    //current implementation
>> }
>
> It depends on how exactly you want to use findDeclarationAt(..). Anyway I
> think it shouldn't completely rely on duchain, even if the top-context was
> parsed, because it may not have been parsed correctly.
>
> So maybe something like this: 1. "Decide what to do using the current
> implementation", 2. "Try to refine the decision using the duchain".
Ok, using that tooltips for functions could be avoided. But what about
strings and comments?

Anyway - this will be post 4.0...

Niko




More information about the KDevelop-devel mailing list