Lines Matching refs:decl
56 bool HeaderASTVisitor::VisitRecordDecl(const clang::RecordDecl *decl) { in VisitRecordDecl() argument
58 if (decl->isInvalidDecl()) { in VisitRecordDecl()
63 if (!decl->isThisDeclarationADefinition() || in VisitRecordDecl()
64 decl->getTypeForDecl()->isDependentType() || in VisitRecordDecl()
65 decl->isAnonymousStructOrUnion() || in VisitRecordDecl()
66 !decl->hasNameForLinkage() || in VisitRecordDecl()
67 !decl->isExternallyVisible()) { in VisitRecordDecl()
71 mangle_contextp_, ast_contextp_, cip_, decl, module_, ast_caches_); in VisitRecordDecl()
75 bool HeaderASTVisitor::VisitEnumDecl(const clang::EnumDecl *decl) { in VisitEnumDecl() argument
76 if (!decl->isThisDeclarationADefinition() || in VisitEnumDecl()
77 decl->getTypeForDecl()->isDependentType()) { in VisitEnumDecl()
81 mangle_contextp_, ast_contextp_, cip_, decl, module_, ast_caches_); in VisitEnumDecl()
105 bool HeaderASTVisitor::ShouldSkipFunctionDecl(const clang::FunctionDecl *decl) { in ShouldSkipFunctionDecl() argument
106 if (!decl->getDefinition()) { in ShouldSkipFunctionDecl()
109 ABIWrapper::GetDeclSourceFile(decl, cip_, options_.root_dir_)) { in ShouldSkipFunctionDecl()
114 if (decl->isDeleted()) { in ShouldSkipFunctionDecl()
117 if (decl->getLinkageAndVisibility().getLinkage() != in ShouldSkipFunctionDecl()
122 llvm::dyn_cast<clang::CXXMethodDecl>(decl)) { in ShouldSkipFunctionDecl()
132 clang::FunctionDecl::TemplatedKind tkind = decl->getTemplatedKind(); in ShouldSkipFunctionDecl()
143 bool HeaderASTVisitor::VisitFunctionDecl(const clang::FunctionDecl *decl) { in VisitFunctionDecl() argument
144 if (ShouldSkipFunctionDecl(decl)) { in VisitFunctionDecl()
148 mangle_contextp_, ast_contextp_, cip_, decl, module_, ast_caches_); in VisitFunctionDecl()
153 std::vector<std::string> manglings = cg.getAllManglings(decl); in VisitFunctionDecl()
158 ABIWrapper::GetMangledNameDecl(decl, mangle_contextp_); in VisitFunctionDecl()
163 bool HeaderASTVisitor::VisitVarDecl(const clang::VarDecl *decl) { in VisitVarDecl() argument
164 if (!decl->hasGlobalStorage() || in VisitVarDecl()
165 decl->getType().getTypePtr()->isDependentType()) { in VisitVarDecl()
170 mangle_contextp_, ast_contextp_, cip_, decl, module_, ast_caches_); in VisitVarDecl()
175 bool HeaderASTVisitor::TraverseDecl(clang::Decl *decl) { in TraverseDecl() argument
176 if (!decl) { in TraverseDecl()
180 ABIWrapper::GetDeclSourceFile(decl, cip_, options_.root_dir_); in TraverseDecl()
182 std::make_pair(decl, source_file)); in TraverseDecl()
185 if ((decl != tu_decl_) && options_.dump_exported_only_ && in TraverseDecl()
192 if ((decl != tu_decl_) && in TraverseDecl()
194 !decl->isFunctionOrFunctionTemplate()) { in TraverseDecl()
197 return RecursiveASTVisitor<HeaderASTVisitor>::TraverseDecl(decl); in TraverseDecl()