• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/lldb/source/Symbol/

Lines Matching defs:clang

16 #include "clang/AST/Decl.h"
17 #include "clang/AST/DeclCXX.h"
18 #include "clang/AST/DeclObjC.h"
19 #include "clang/Sema/Lookup.h"
20 #include "clang/Sema/Sema.h"
26 using namespace clang;
30 clang::ASTContext &dst_clang_ast = dst_ast.getASTContext();
37 clang::ASTContext &src_clang_ast = src_ast->getASTContext();
39 clang::QualType src_qual_type = ClangUtil::GetQualType(src_type);
63 clang::Decl *ClangASTImporter::CopyDecl(clang::ASTContext *dst_ast,
64 clang::Decl *decl) {
67 clang::ASTContext *src_ast = &decl->getASTContext();
75 llvm::Expected<clang::Decl *> result = delegate_sp->Import(decl);
106 clang::DeclContext *decl_context;
107 clang::DeclContext *lexical_decl_context;
110 llvm::DenseMap<clang::Decl *, Backup> m_backups;
112 void OverrideOne(clang::Decl *decl) {
124 clang::Decl *decl, clang::DeclContext *base,
125 clang::DeclContext *(clang::Decl::*contextFromDecl)(),
126 clang::DeclContext *(clang::DeclContext::*contextFromContext)()) {
137 clang::Decl *GetEscapedChild(clang::Decl *decl,
138 clang::DeclContext *base = nullptr) {
142 if (!ChainPassesThrough(decl, base, &clang::Decl::getDeclContext,
143 &clang::DeclContext::getParent) ||
144 !ChainPassesThrough(decl, base, &clang::Decl::getLexicalDeclContext,
145 &clang::DeclContext::getLexicalParent)) {
149 base = clang::dyn_cast<clang::DeclContext>(decl);
156 if (clang::DeclContext *context =
157 clang::dyn_cast<clang::DeclContext>(decl)) {
158 for (clang::Decl *decl : context->decls()) {
159 if (clang::Decl *escaped_child = GetEscapedChild(decl)) {
168 void Override(clang::Decl *decl) {
169 if (clang::Decl *escaped_child = GetEscapedChild(decl)) {
187 void OverrideAllDeclsFromContainingFunction(clang::Decl *decl) {
194 for (clang::Decl *child_decl : decl_context->decls()) {
202 for (const std::pair<clang::Decl *, Backup> &backup : m_backups) {
219 clang::ASTContext *m_dst_ctx;
220 clang::ASTContext *m_src_ctx;
229 clang::ASTContext *dst_ctx,
230 clang::ASTContext *src_ctx)
275 void NewDeclImported(clang::Decl *from, clang::Decl *to) override {
316 clang::Decl *ClangASTImporter::DeportDecl(clang::ASTContext *dst_ctx,
317 clang::Decl *decl) {
320 clang::ASTContext *src_ctx = &decl->getASTContext();
331 clang::Decl *result;
356 clang::QualType qual_type(
359 const clang::Type::TypeClass type_class = qual_type->getTypeClass();
361 case clang::Type::Record: {
362 const clang::CXXRecordDecl *cxx_record_decl =
370 case clang::Type::Enum: {
371 clang::EnumDecl *enum_decl =
372 llvm::cast<clang::EnumType>(qual_type)->getDecl();
379 case clang::Type::ObjCObject:
380 case clang::Type::ObjCInterface: {
381 const clang::ObjCObjectType *objc_class_type =
382 llvm::dyn_cast<clang::ObjCObjectType>(qual_type);
384 clang::ObjCInterfaceDecl *class_interface_decl =
395 case clang::Type::Typedef:
397 llvm::cast<clang::TypedefType>(qual_type)
402 case clang::Type::Auto:
404 llvm::cast<clang::AutoType>(qual_type)
408 case clang::Type::Elaborated:
410 llvm::cast<clang::ElaboratedType>(qual_type)
414 case clang::Type::Paren:
417 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr()));
432 clang::QualType qual_type(
435 const clang::Type::TypeClass type_class = qual_type->getTypeClass();
437 case clang::Type::Record: {
438 const clang::CXXRecordDecl *cxx_record_decl =
446 case clang::Type::Enum: {
447 clang::EnumDecl *enum_decl =
448 llvm::cast<clang::EnumType>(qual_type)->getDecl();
455 case clang::Type::ObjCObject:
456 case clang::Type::ObjCInterface: {
457 const clang::ObjCObjectType *objc_class_type =
458 llvm::dyn_cast<clang::ObjCObjectType>(qual_type);
460 clang::ObjCInterfaceDecl *class_interface_decl =
471 case clang::Type::Typedef:
473 llvm::cast<clang::TypedefType>(qual_type)
478 case clang::Type::Auto:
480 llvm::cast<clang::AutoType>(qual_type)
484 case clang::Type::Elaborated:
486 llvm::cast<clang::ElaboratedType>(qual_type)
490 case clang::Type::Paren:
493 llvm::cast<clang::ParenType>(qual_type)->desugar().getAsOpaquePtr()));
516 const clang::RecordDecl *record_decl, uint64_t &bit_size,
518 llvm::DenseMap<const clang::FieldDecl *, uint64_t> &field_offsets,
519 llvm::DenseMap<const clang::CXXRecordDecl *, clang::CharUnits>
521 llvm::DenseMap<const clang::CXXRecordDecl *, clang::CharUnits>
544 void ClangASTImporter::SetRecordLayout(clang::RecordDecl *decl,
549 void ClangASTImporter::CompleteDecl(clang::Decl *decl) {
575 bool ClangASTImporter::CompleteTagDecl(clang::TagDecl *decl) {
595 bool ClangASTImporter::CompleteTagDeclWithOrigin(clang::TagDecl *decl,
596 clang::TagDecl *origin_decl) {
597 clang::ASTContext *origin_ast_ctx = &origin_decl->getASTContext();
618 clang::ObjCInterfaceDecl *interface_decl) {
634 RequireCompleteType(clang::QualType(super_class->getTypeForDecl(), 0));
639 bool ClangASTImporter::CompleteAndFetchChildren(clang::QualType type) {
709 bool ClangASTImporter::RequireCompleteType(clang::QualType type) {
735 ClangASTMetadata *ClangASTImporter::GetDeclMetadata(const clang::Decl *decl) {
747 ClangASTImporter::GetDeclOrigin(const clang::Decl *decl) {
759 void ClangASTImporter::SetDeclOrigin(const clang::Decl *decl,
760 clang::Decl *original_decl) {
775 void ClangASTImporter::RegisterNamespaceMap(const clang::NamespaceDecl *decl,
783 ClangASTImporter::GetNamespaceMap(const clang::NamespaceDecl *decl) {
795 void ClangASTImporter::BuildNamespaceMap(const clang::NamespaceDecl *decl) {
821 void ClangASTImporter::ForgetDestination(clang::ASTContext *dst_ast) {
831 void ClangASTImporter::ForgetSource(clang::ASTContext *dst_ast,
832 clang::ASTContext *src_ast) {
910 clang::Decl *to, clang::Decl *from) {
931 if (clang::TagDecl *to_tag = dyn_cast<clang::TagDecl>(to)) {
932 if (clang::TagDecl *from_tag = dyn_cast<clang::TagDecl>(from)) {
938 if (NamedDecl *from_named_decl = dyn_cast<clang::NamedDecl>(from)) {
1005 void ClangASTImporter::ASTImporterDelegate::Imported(clang::Decl *from,
1006 clang::Decl *to) {
1012 return clang::ASTImporter::Imported(from, to);
1020 if (NamedDecl *from_named_decl = dyn_cast<clang::NamedDecl>(from)) {
1086 if (clang::NamespaceDecl *to_namespace =
1087 dyn_cast<clang::NamespaceDecl>(to)) {
1088 clang::NamespaceDecl *from_namespace =
1089 dyn_cast<clang::NamespaceDecl>(from);
1162 clang::Decl *
1163 ClangASTImporter::ASTImporterDelegate::GetOriginalDecl(clang::Decl *To) {