Home
last modified time | relevance | path

Searched refs:decl (Results 1 – 5 of 5) sorted by relevance

/development/vndk/tools/header-checker/src/dumper/
Dast_processing.cpp42 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()
[all …]
Dast_processing.h46 bool VisitRecordDecl(const clang::RecordDecl *decl);
48 bool VisitFunctionDecl(const clang::FunctionDecl *decl);
50 bool VisitEnumDecl(const clang::EnumDecl *decl);
52 bool VisitVarDecl(const clang::VarDecl *decl);
54 bool TraverseDecl(clang::Decl *decl);
60 bool ShouldSkipFunctionDecl(const clang::FunctionDecl *decl);
Dfake_decl_source.cpp89 clang::NamedDecl *decl; in CreateDecl() local
99 decl = CreateClassTemplateDecl(cxx_record_decl, decl_context); in CreateDecl()
101 decl = cxx_record_decl; in CreateDecl()
106 decl = CreateNamespaceDecl(name, decl_context); in CreateDecl()
109 decl = nullptr; in CreateDecl()
112 if (decl) { in CreateDecl()
113 decl_context->addDecl(decl); in CreateDecl()
115 return decl; in CreateDecl()
168 clang::NamedDecl *decl = in CorrectTypo() local
170 if (decl == nullptr) { in CorrectTypo()
[all …]
Dabi_wrappers.h50 static std::string GetDeclSourceFile(const clang::Decl *decl,
54 std::string GetCachedDeclSourceFile(const clang::Decl *decl,
58 static std::string GetMangledNameDecl(const clang::NamedDecl *decl,
95 bool CreateAnonymousRecord(const clang::RecordDecl *decl);
152 const clang::FunctionDecl *decl, repr::ModuleIR *module,
199 const clang::EnumDecl *decl, repr::ModuleIR *module,
220 const clang::VarDecl *decl, repr::ModuleIR *module,
Dabi_wrappers.cpp70 std::string ABIWrapper::GetDeclSourceFile(const clang::Decl *decl, in GetDeclSourceFile() argument
73 clang::SourceLocation location = decl->getLocation(); in GetDeclSourceFile()
86 const clang::Decl *decl, const clang::CompilerInstance *cip) { in GetCachedDeclSourceFile() argument
87 assert(decl != nullptr); in GetCachedDeclSourceFile()
88 auto result = ast_caches_->decl_to_source_file_cache_.find(decl); in GetCachedDeclSourceFile()
90 return GetDeclSourceFile(decl, cip); in GetCachedDeclSourceFile()
96 const clang::NamedDecl *decl, clang::MangleContext *mangle_contextp) { in GetMangledNameDecl() argument
97 if (!mangle_contextp->shouldMangleDeclName(decl)) { in GetMangledNameDecl()
98 clang::IdentifierInfo *identifier = decl->getIdentifier(); in GetMangledNameDecl()
103 mangle_contextp->mangleName(decl, ostream); in GetMangledNameDecl()
[all …]