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.cpp43 bool HeaderASTVisitor::VisitRecordDecl(const clang::RecordDecl *decl) { in VisitRecordDecl() argument
45 if (decl->isInvalidDecl()) { in VisitRecordDecl()
50 if (!decl->isThisDeclarationADefinition() || in VisitRecordDecl()
51 decl->getTypeForDecl()->isDependentType() || in VisitRecordDecl()
52 decl->isAnonymousStructOrUnion() || in VisitRecordDecl()
53 !decl->hasNameForLinkage() || in VisitRecordDecl()
54 !decl->isExternallyVisible()) { in VisitRecordDecl()
58 mangle_contextp_, ast_contextp_, cip_, decl, module_, ast_caches_); in VisitRecordDecl()
62 bool HeaderASTVisitor::VisitEnumDecl(const clang::EnumDecl *decl) { in VisitEnumDecl() argument
63 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.cpp90 clang::NamedDecl *decl; in CreateDecl() local
100 decl = CreateClassTemplateDecl(cxx_record_decl, decl_context); in CreateDecl()
102 decl = cxx_record_decl; in CreateDecl()
107 decl = CreateNamespaceDecl(name, decl_context); in CreateDecl()
110 decl = nullptr; in CreateDecl()
113 if (decl) { in CreateDecl()
114 decl_context->addDecl(decl); in CreateDecl()
116 return decl; in CreateDecl()
169 clang::NamedDecl *decl = in CorrectTypo() local
171 if (decl == nullptr) { in CorrectTypo()
[all …]
Dabi_wrappers.h49 static std::string GetDeclSourceFile(const clang::Decl *decl,
52 static std::string GetMangledNameDecl(const clang::NamedDecl *decl,
56 std::string GetCachedDeclSourceFile(const clang::Decl *decl,
75 std::string GetTagDeclQualifiedName(const clang::TagDecl *decl);
87 bool CreateAnonymousRecord(const clang::RecordDecl *decl);
151 const clang::FunctionDecl *decl, repr::ModuleIR *module,
198 const clang::EnumDecl *decl, repr::ModuleIR *module,
219 const clang::VarDecl *decl, repr::ModuleIR *module,
Dabi_wrappers.cpp47 const clang::Decl *decl, const clang::CompilerInstance *cip) { in GetCachedDeclSourceFile() argument
48 assert(decl != nullptr); in GetCachedDeclSourceFile()
49 auto result = ast_caches_->decl_to_source_file_cache_.find(decl); in GetCachedDeclSourceFile()
51 return GetDeclSourceFile(decl, cip); in GetCachedDeclSourceFile()
144 std::string ABIWrapper::GetDeclSourceFile(const clang::Decl *decl, in GetDeclSourceFile() argument
147 clang::SourceLocation location = decl->getLocation(); in GetDeclSourceFile()
383 const clang::NamedDecl *decl, clang::MangleContext *mangle_contextp) { in GetMangledNameDecl() argument
384 if (!mangle_contextp->shouldMangleDeclName(decl)) { in GetMangledNameDecl()
385 clang::IdentifierInfo *identifier = decl->getIdentifier(); in GetMangledNameDecl()
390 mangle_contextp->mangleName(decl, ostream); in GetMangledNameDecl()
[all …]