[cfe-dev] How to get the namespace name from a clang::CXXRecordDecl?
Stephan Bergmann via cfe-dev
cfe-dev at lists.llvm.org
Fri Jul 31 01:32:39 PDT 2020
On 31/07/2020 10:25, Yafei Liu via cfe-dev wrote:
> 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.
such information is recorded in the DeclContext chain, reachable via
Decl::getDeclContext
More information about the cfe-dev
mailing list