[cfe-dev] Name lookup approach

Zhongxing Xu xuzhongxing at gmail.com
Thu Jan 8 06:17:18 PST 2009


Hi,

Currently we have two mechanisms to do name lookup: IdentifierResolver and
DeclContext. In Sema::LookupDecl(), we combine the two approaches to fulfil
the name lookup task. I really feel that the code in Sema::LookupDecl()
logically uninituitive and error prone. Could we use DeclContext exclusively
to do name lookup and eliminate the IdentifierResolver use? I think that way
could make name lookup logically more clear. My only concern is if that
could cause performance lost?

-Zhongxing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090108/9781593f/attachment.html>


More information about the cfe-dev mailing list