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.cpp56 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()
[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,
55 std::string GetCachedDeclSourceFile(const clang::Decl *decl,
59 static std::string GetMangledNameDecl(const clang::NamedDecl *decl,
96 bool CreateAnonymousRecord(const clang::RecordDecl *decl);
153 const clang::FunctionDecl *decl, repr::ModuleIR *module,
200 const clang::EnumDecl *decl, repr::ModuleIR *module,
221 const clang::VarDecl *decl, repr::ModuleIR *module,
Dabi_wrappers.cpp70 std::string ABIWrapper::GetDeclSourceFile(const clang::Decl *decl, in GetDeclSourceFile() argument
74 clang::SourceLocation location = decl->getLocation(); in GetDeclSourceFile()
87 const clang::Decl *decl, const clang::CompilerInstance *cip) { in GetCachedDeclSourceFile() argument
88 assert(decl != nullptr); in GetCachedDeclSourceFile()
89 auto result = ast_caches_->decl_to_source_file_cache_.find(decl); in GetCachedDeclSourceFile()
91 return GetDeclSourceFile(decl, cip, ast_caches_->root_dir_); in GetCachedDeclSourceFile()
97 const clang::NamedDecl *decl, clang::MangleContext *mangle_contextp) { in GetMangledNameDecl() argument
98 if (!mangle_contextp->shouldMangleDeclName(decl)) { in GetMangledNameDecl()
99 clang::IdentifierInfo *identifier = decl->getIdentifier(); in GetMangledNameDecl()
104 mangle_contextp->mangleName(decl, ostream); in GetMangledNameDecl()
[all …]