Lines Matching refs:decl

42 bool HeaderASTVisitor::VisitRecordDecl(const clang::RecordDecl *decl) {  in VisitRecordDecl()  argument
44 if (decl->isInvalidDecl()) { in VisitRecordDecl()
49 if (!decl->isThisDeclarationADefinition() || in VisitRecordDecl()
50 decl->getTypeForDecl()->isDependentType() || in VisitRecordDecl()
51 decl->isAnonymousStructOrUnion() || in VisitRecordDecl()
52 !decl->hasNameForLinkage() || in VisitRecordDecl()
53 !decl->isExternallyVisible()) { in VisitRecordDecl()
57 mangle_contextp_, ast_contextp_, cip_, decl, module_, ast_caches_); in VisitRecordDecl()
61 bool HeaderASTVisitor::VisitEnumDecl(const clang::EnumDecl *decl) { in VisitEnumDecl() argument
62 if (!decl->isThisDeclarationADefinition() || in VisitEnumDecl()
63 decl->getTypeForDecl()->isDependentType()) { in VisitEnumDecl()
67 mangle_contextp_, ast_contextp_, cip_, decl, module_, ast_caches_); in VisitEnumDecl()
91 bool HeaderASTVisitor::ShouldSkipFunctionDecl(const clang::FunctionDecl *decl) { in ShouldSkipFunctionDecl() argument
92 if (!decl->getDefinition()) { in ShouldSkipFunctionDecl()
94 options_.source_file_ != ABIWrapper::GetDeclSourceFile(decl, cip_)) { in ShouldSkipFunctionDecl()
99 if (decl->isDeleted()) { in ShouldSkipFunctionDecl()
102 if (decl->getLinkageAndVisibility().getLinkage() != in ShouldSkipFunctionDecl()
107 llvm::dyn_cast<clang::CXXMethodDecl>(decl)) { in ShouldSkipFunctionDecl()
117 clang::FunctionDecl::TemplatedKind tkind = decl->getTemplatedKind(); in ShouldSkipFunctionDecl()
128 bool HeaderASTVisitor::VisitFunctionDecl(const clang::FunctionDecl *decl) { in VisitFunctionDecl() argument
129 if (ShouldSkipFunctionDecl(decl)) { in VisitFunctionDecl()
133 mangle_contextp_, ast_contextp_, cip_, decl, module_, ast_caches_); in VisitFunctionDecl()
138 std::vector<std::string> manglings = cg.getAllManglings(decl); in VisitFunctionDecl()
143 ABIWrapper::GetMangledNameDecl(decl, mangle_contextp_); in VisitFunctionDecl()
148 bool HeaderASTVisitor::VisitVarDecl(const clang::VarDecl *decl) { in VisitVarDecl() argument
149 if (!decl->hasGlobalStorage() || in VisitVarDecl()
150 decl->getType().getTypePtr()->isDependentType()) { in VisitVarDecl()
155 mangle_contextp_, ast_contextp_, cip_, decl, module_, ast_caches_); in VisitVarDecl()
164 bool HeaderASTVisitor::TraverseDecl(clang::Decl *decl) { in TraverseDecl() argument
165 if (!decl) { in TraverseDecl()
168 std::string source_file = ABIWrapper::GetDeclSourceFile(decl, cip_); in TraverseDecl()
170 std::make_pair(decl, source_file)); in TraverseDecl()
173 if ((decl != tu_decl_) && AreHeadersExported(exported_headers) && in TraverseDecl()
179 if ((decl != tu_decl_) && in TraverseDecl()
181 !decl->isFunctionOrFunctionTemplate()) { in TraverseDecl()
184 return RecursiveASTVisitor<HeaderASTVisitor>::TraverseDecl(decl); in TraverseDecl()