<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jul 1, 2014 at 9:11 PM, Daniel Dilts <span dir="ltr"><<a href="mailto:diltsman@gmail.com" target="_blank">diltsman@gmail.com</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>I am possibly renaming a class.  I would like to make sure that the new name doesn't already exist.  Given that I am generating the new name, I have it in a std::string.</div>
<div><br></div><div>How would I check to see if there is already something with the new name in the DeclContext?  I assume I would use DeclContext::lockup of some flavor.  Also, the new name does not specify any namespaces (no :: anywhere in it).</div>
</div></blockquote><div><br></div><div>Unfortunately that's basically impossible in C++ (argument dependent lookup etc). But the easy cases should be handled by doing DeclContext::lookup throught all parent contexts.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
</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></div>