[cfe-dev] Ensure name doesn't already exist

Daniel Dilts diltsman at gmail.com
Tue Jul 1 12:11:41 PDT 2014


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.

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).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140701/c8bc94f2/attachment.html>


More information about the cfe-dev mailing list