[cfe-dev] Qualified and unqualified name lookup and IdResolver
Chris Lattner
clattner at apple.com
Wed Dec 10 20:39:48 PST 2008
On Dec 10, 2008, at 6:25 PM, Chris Lattner wrote:
>>> For example, could 'enableLazyBuiltinCreation' be handled as a
>>> "lookup" on the global (or maybe a new 'builtin') scope instead of
>>> as a special case hack?
>>
>> Well, maybe. It depends somewhat on whether we want to permit
>> qualified lookup to find these names ('::__builtin_foo') or not. One
>> could imagine that they live in an imaginary scope outside of the
>> translation unit, so you can never actually find them via
>> unqualified lookup.
>
> I don't know what GCC does with this, but I would assume they are only
> ever found
Sorry, got interrupted and forgot to finish the thought:
... only ever found with unqualified name lookup. It would be
interesting to see if ::__builtin_foo works with GCC though.
-Chris
More information about the cfe-dev
mailing list