Hi,<br><br>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? <br>
<br>-Zhongxing<br>