[cfe-dev] How to get the namespace name from a	clang::CXXRecordDecl?
    Yafei Liu via cfe-dev 
    cfe-dev at lists.llvm.org
       
    Fri Jul 31 02:20:30 PDT 2020
    
    
  
It works, thanks so much!
On Fri, Jul 31, 2020 at 5:04 PM Stephan Bergmann <sbergman at redhat.com>
wrote:
> On 31/07/2020 10:49, Yafei Liu wrote:
> > Hi Stephan, I'm sorry I tried some combinations of APIs in
> > getDeclContext, which are related to namespace, but failed, can you show
> > me some examples or related documents?
>
> Take for example the definition of Decl::isInAnonymousNamespace in
> clang/lib/AST/DeclBase.cpp.  That should give you an idea.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200731/b2eec1b6/attachment.html>
    
    
More information about the cfe-dev
mailing list