[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 02:04:22 PDT 2020
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.
More information about the cfe-dev
mailing list