<div dir="ltr">Create LookupResult and call LookupName on it passing appropriate DeclarationContext into which you're performing the lookup (can be a scope or record decl).</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 2, 2014 at 10:00 AM, Aaron W.Hsu <span dir="ltr"><<a href="mailto:arcfide@sacrideo.us" target="_blank">arcfide@sacrideo.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div dir="ltr" style="font-family:'Calibri','Segoe UI','Meiryo','Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','sans-serif';font-size:12pt"><div style="font-size:13pt">Dear Clang Developers:</div><div style="font-size:13pt"><br></div><div style="font-size:13pt">Inside of SemaExpr.cpp when handling BinOps, I want to lookup the (Expr *) and (NamedDecl) of a function by its name. How can I do this?</div><div style="font-size:13pt"><br></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px" dir="ltr"><div style="font-size:13pt">Yours truly,</div><div style="font-size:13pt"><br></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px" dir="ltr"><div style="font-size:13pt">Aaron W. Hsu<span class="HOEnZb"><font color="#888888"><br></font></span></div></blockquote></blockquote><span class="HOEnZb"><font color="#888888"><div style="font-size:13pt"><br></div><div style="font-size:13pt">-- <br>Aaron W. Hsu | <a href="mailto:arcfide@sacrideo.us" target="_blank">arcfide@sacrideo.us</a> | <a href="http://www.sacrideo.us" target="_blank">http://www.sacrideo.us</a><br>Please support my work: <a href="https://www.gratipay.com/arcfide/" target="_blank">https://www.gratipay.com/arcfide/</a><br>לֵ֤ב חֲכָמִים֙ בְּבֵ֣ית אֵ֔בֶל וְלֵ֥ב כְּסִילִ֖ים בְּבֵ֥ית שִׂמְחָֽה׃</div><div style="font-size:13pt"><br></div></font></span></div>
</div>

<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>