[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 01:25:13 PDT 2020


I'm using an AST matcher to get some `clang::CXXRecordDecl`s, and now I
want to get the namespace of that record, but I searched all the apis and
cannot find one.

P.S. I dumped the record and found that there's no information about
namespaces, does that mean I have to handle finding namespaces as well? If
that's the case, an AST matcher seems not very helpful since I have to go
through the source code anyway.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200731/de2800a5/attachment.html>


More information about the cfe-dev mailing list