Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] null bindings

Hi Mike,
I've seen few places in name resolution code that returned null binding and has TODOs saying that it should be replaced by ProblemBinding. It was most likely in CPPSemantics and/or CPPTemplates.

-sergey

On Thu, Apr 3, 2008 at 1:38 PM, Mike Kucera <mkucera@xxxxxxxxxx> wrote:

Question for the experts....

When exactly does IASTName.resloveBinding() return null? From what I can
tell it returns a ProblemBinding for all names that can't be resolved, and
only returns null for empty name nodes, that is dummy name nodes created by
the parser that don't actually correspond to an identifier in the source.
Is this correct?

I'm asking because I've been experimenting with adding a new type of
ambiguity node, an ambiguous declarator. The ambiguity resolution code in
CPPASTAmbiguity counts both ProblemBindings and null bindings as problems.
But it seems to me that null bindings aren't really problems if they are
just the result of dummy name nodes, and therefore shouldn't be counted. Am
I missing something here?

Thanks.


Mike Kucera
Software Developer
IBM CDT Team, Toronto
mkucera@xxxxxxxxxx

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top