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

Lines Matching defs:ClangASTContext

1 //===-- ClangASTContext.cpp -------------------------------------*- C++ -*-===//
9 #include "lldb/Symbol/ClangASTContext.h"
305 typedef lldb_private::ThreadSafeDenseMap<clang::ASTContext *, ClangASTContext *>
317 char ClangASTContext::ID;
319 bool ClangASTContext::IsOperator(llvm::StringRef name,
400 ClangASTContext::ConvertAccessTypeToAccessSpecifier(AccessType access) {
504 ClangASTContext::ClangASTContext(llvm::Triple target_triple) {
508 // ClangASTContext.
512 ClangASTContext::ClangASTContext(ASTContext &existing_ctxt) {
520 ClangASTContext::~ClangASTContext() { Finalize(); }
522 ConstString ClangASTContext::GetPluginNameStatic() {
526 ConstString ClangASTContext::GetPluginName() {
527 return ClangASTContext::GetPluginNameStatic();
530 uint32_t ClangASTContext::GetPluginVersion() { return 1; }
532 lldb::TypeSystemSP ClangASTContext::CreateInstance(lldb::LanguageType language,
562 return std::make_shared<ClangASTContext>(triple);
568 LanguageSet ClangASTContext::GetSupportedLanguagesForTypes() {
584 LanguageSet ClangASTContext::GetSupportedLanguagesForExpressions() {
594 void ClangASTContext::Initialize() {
600 void ClangASTContext::Terminate() {
604 void ClangASTContext::Finalize() {
620 void ClangASTContext::setSema(Sema *s) {
626 const char *ClangASTContext::GetTargetTriple() {
630 void ClangASTContext::SetTargetTriple(llvm::StringRef target_triple) {
634 void ClangASTContext::SetExternalSource(
641 ASTContext &ClangASTContext::getASTContext() {
670 void ClangASTContext::CreateASTContext() {
715 ClangASTContext *ClangASTContext::GetASTContext(clang::ASTContext *ast) {
716 ClangASTContext *clang_ast = GetASTMap().Lookup(ast);
720 clang::MangleContext *ClangASTContext::getMangleContext() {
726 std::shared_ptr<clang::TargetOptions> &ClangASTContext::getTargetOptions() {
735 TargetInfo *ClangASTContext::getTargetInfo() {
752 ClangASTContext::GetBuiltinTypeForEncodingAndBitSize(Encoding encoding,
813 ClangASTContext::GetBasicTypeEnumeration(ConstString name) {
878 uint32_t ClangASTContext::GetPointerByteSize() {
887 CompilerType ClangASTContext::GetBasicType(lldb::BasicType basic_type) {
898 CompilerType ClangASTContext::GetBuiltinTypeForDWARFEncodingAndBitSize(
1111 CompilerType ClangASTContext::GetCStringType(bool is_const) {
1121 bool ClangASTContext::AreTypesSame(CompilerType type1, CompilerType type2,
1123 ClangASTContext *ast =
1124 llvm::dyn_cast_or_null<ClangASTContext>(type1.GetTypeSystem());
1142 CompilerType ClangASTContext::GetTypeForDecl(void *opaque_decl) {
1152 CompilerDeclContext ClangASTContext::CreateDeclContext(DeclContext *ctx) {
1158 CompilerType ClangASTContext::GetTypeForDecl(clang::NamedDecl *decl) {
1167 CompilerType ClangASTContext::GetTypeForDecl(TagDecl *decl) {
1171 CompilerType ClangASTContext::GetTypeForDecl(ObjCInterfaceDecl *decl) {
1177 CompilerType ClangASTContext::CreateRecordType(DeclContext *decl_ctx,
1259 const ClangASTContext::TemplateParameterInfos &template_param_infos,
1315 clang::FunctionTemplateDecl *ClangASTContext::CreateFunctionTemplateDecl(
1343 void ClangASTContext::CreateFunctionTemplateSpecializationInfo(
1353 ClassTemplateDecl *ClangASTContext::CreateClassTemplateDecl(
1420 ClangASTContext::CreateTemplateTemplateParmDecl(const char *template_name) {
1428 ClangASTContext::TemplateParameterInfos template_param_infos;
1443 ClangASTContext::CreateClassTemplateSpecializationDecl(
1467 CompilerType ClangASTContext::CreateClassTemplateSpecializationType(
1495 bool ClangASTContext::CheckOverloadedOperatorKindParameterCount(
1521 ClangASTContext::UnifyAccessSpecifiers(clang::AccessSpecifier lhs,
1534 bool ClangASTContext::FieldIsBitfield(FieldDecl *field,
1553 bool ClangASTContext::RecordHasFields(const RecordDecl *record_decl) {
1578 CompilerType ClangASTContext::CreateObjCClass(llvm::StringRef name,
1601 return !ClangASTContext::RecordHasFields(b->getType()->getAsCXXRecordDecl());
1605 ClangASTContext::GetNumBaseClasses(const CXXRecordDecl *cxx_record_decl,
1629 NamespaceDecl *ClangASTContext::GetUniqueNamespaceDeclaration(
1690 ClangASTContext::CreateBlockDeclaration(clang::DeclContext *ctx) {
1717 clang::UsingDirectiveDecl *ClangASTContext::CreateUsingDirectiveDeclaration(
1733 ClangASTContext::CreateUsingDeclaration(clang::DeclContext *current_decl_ctx,
1749 clang::VarDecl *ClangASTContext::CreateVariableDeclaration(
1765 ClangASTContext::GetOpaqueCompilerType(clang::ASTContext *ast,
1838 ClangASTContext::GetDeclarationName(const char *name,
1860 if (!ClangASTContext::CheckOverloadedOperatorKindParameterCount(
1867 FunctionDecl *ClangASTContext::CreateFunctionDeclaration(
1896 ClangASTContext::CreateFunctionType(const CompilerType &result_type,
1934 ParmVarDecl *ClangASTContext::CreateParameterDeclaration(
1949 void ClangASTContext::SetFunctionParameters(FunctionDecl *function_decl,
1957 ClangASTContext::CreateBlockPointerType(const CompilerType &function_type) {
1966 CompilerType ClangASTContext::CreateArrayType(const CompilerType &element_type,
1991 CompilerType ClangASTContext::CreateStructForIdentifier(
2016 CompilerType ClangASTContext::GetOrCreateStructForIdentifier(
2031 ClangASTContext::CreateEnumerationType(const char *name, DeclContext *decl_ctx,
2063 CompilerType ClangASTContext::GetIntTypeFromBitSize(size_t bit_size,
2107 CompilerType ClangASTContext::GetPointerSizedIntType(bool is_signed) {
2112 void ClangASTContext::DumpDeclContextHiearchy(clang::DeclContext *decl_ctx) {
2126 void ClangASTContext::DumpDeclHiearchy(clang::Decl *decl) {
2148 bool ClangASTContext::DeclsAreEquivalent(clang::Decl *lhs_decl,
2231 bool ClangASTContext::GetCompleteDecl(clang::ASTContext *ast,
2267 void ClangASTContext::SetMetadataAsUserID(const clang::Decl *decl,
2274 void ClangASTContext::SetMetadataAsUserID(const clang::Type *type,
2281 void ClangASTContext::SetMetadata(const clang::Decl *object,
2286 void ClangASTContext::SetMetadata(const clang::Type *object,
2291 ClangASTMetadata *ClangASTContext::GetMetadata(const clang::Decl *object) {
2298 ClangASTMetadata *ClangASTContext::GetMetadata(const clang::Type *object) {
2305 bool ClangASTContext::SetTagTypeKind(clang::QualType tag_qual_type,
2322 bool ClangASTContext::SetDefaultAccessForRecordFields(
2342 ClangASTContext::GetDeclContextForType(const CompilerType &type) {
2377 ClangASTContext::GetDeclContextForType(clang::QualType type) {
2538 bool ClangASTContext::IsAggregateType(lldb::opaque_compiler_type_t type) {
2559 bool ClangASTContext::IsAnonymousType(lldb::opaque_compiler_type_t type) {
2581 bool ClangASTContext::IsArrayType(lldb::opaque_compiler_type_t type,
2650 bool ClangASTContext::IsVectorType(lldb::opaque_compiler_type_t type,
2685 bool ClangASTContext::IsRuntimeGeneratedType(
2703 bool ClangASTContext::IsCharType(lldb::opaque_compiler_type_t type) {
2707 bool ClangASTContext::IsCompleteType(lldb::opaque_compiler_type_t type) {
2713 bool ClangASTContext::IsConst(lldb::opaque_compiler_type_t type) {
2717 bool ClangASTContext::IsCStringType(lldb::opaque_compiler_type_t type,
2742 bool ClangASTContext::IsFunctionType(lldb::opaque_compiler_type_t type,
2778 ClangASTContext::IsHomogeneousAggregate(lldb::opaque_compiler_type_t type,
2859 size_t ClangASTContext::GetNumberOfFunctionArguments(
2872 ClangASTContext::GetFunctionArgumentAtIndex(lldb::opaque_compiler_type_t type,
2886 bool ClangASTContext::IsFunctionPointerType(lldb::opaque_compiler_type_t type) {
2911 bool ClangASTContext::IsBlockPointerType(
2948 bool ClangASTContext::IsIntegerType(lldb::opaque_compiler_type_t type,
2967 bool ClangASTContext::IsEnumerationType(lldb::opaque_compiler_type_t type,
2983 bool ClangASTContext::IsPointerType(lldb::opaque_compiler_type_t type,
3035 bool ClangASTContext::IsPointerOrReferenceType(
3100 bool ClangASTContext::IsReferenceType(lldb::opaque_compiler_type_t type,
3136 bool ClangASTContext::IsFloatingPointType(lldb::opaque_compiler_type_t type,
3174 bool ClangASTContext::IsDefined(lldb::opaque_compiler_type_t type) {
3200 bool ClangASTContext::IsObjCClassType(const CompilerType &type) {
3213 bool ClangASTContext::IsObjCObjectOrInterfaceType(const CompilerType &type) {
3219 bool ClangASTContext::IsClassType(lldb::opaque_compiler_type_t type) {
3227 bool ClangASTContext::IsEnumType(lldb::opaque_compiler_type_t type) {
3235 bool ClangASTContext::IsPolymorphicClass(lldb::opaque_compiler_type_t type) {
3261 bool ClangASTContext::IsPossibleDynamicType(lldb::opaque_compiler_type_t type,
3390 bool ClangASTContext::IsScalarType(lldb::opaque_compiler_type_t type) {
3397 bool ClangASTContext::IsTypedefType(lldb::opaque_compiler_type_t type) {
3403 bool ClangASTContext::IsVoidType(lldb::opaque_compiler_type_t type) {
3409 bool ClangASTContext::CanPassInRegisters(const CompilerType &type) {
3411 ClangASTContext::GetAsRecordDecl(type)) {
3417 bool ClangASTContext::SupportsLanguage(lldb::LanguageType language) {
3422 ClangASTContext::GetCXXClassName(const CompilerType &type) {
3437 bool ClangASTContext::IsCXXClassType(const CompilerType &type) {
3445 bool ClangASTContext::IsBeingDefined(lldb::opaque_compiler_type_t type) {
3455 bool ClangASTContext::IsObjCObjectPointerType(const CompilerType &type,
3485 bool ClangASTContext::GetCompleteType(lldb::opaque_compiler_type_t type) {
3493 ConstString ClangASTContext::GetTypeName(lldb::opaque_compiler_type_t type) {
3512 ClangASTContext::GetTypeInfo(lldb::opaque_compiler_type_t type,
3713 ClangASTContext::GetMinimumLanguage(lldb::opaque_compiler_type_t type) {
3797 ClangASTContext::GetTypeClass(lldb::opaque_compiler_type_t type) {
3917 unsigned ClangASTContext::GetTypeQualifiers(lldb::opaque_compiler_type_t type) {
3926 ClangASTContext::GetArrayElementType(lldb::opaque_compiler_type_t type,
3949 CompilerType ClangASTContext::GetArrayType(lldb::opaque_compiler_type_t type,
3967 ClangASTContext::GetCanonicalType(lldb::opaque_compiler_type_t type) {
3987 ClangASTContext::GetFullyUnqualifiedType(lldb::opaque_compiler_type_t type) {
3994 int ClangASTContext::GetFunctionArgumentCount(
4005 CompilerType ClangASTContext::GetFunctionArgumentTypeAtIndex(
4020 ClangASTContext::GetFunctionReturnType(lldb::opaque_compiler_type_t type) {
4032 ClangASTContext::GetNumMemberFunctions(lldb::opaque_compiler_type_t type) {
4092 ClangASTContext::GetMemberFunctionAtIndex(lldb::opaque_compiler_type_t type,
4209 ClangASTContext::GetNonReferenceType(lldb::opaque_compiler_type_t type) {
4215 CompilerType ClangASTContext::CreateTypedefType(
4219 ClangASTContext *ast =
4220 llvm::dyn_cast<ClangASTContext>(type.GetTypeSystem());
4227 ClangASTContext::DeclContextGetAsDeclContext(compiler_decl_ctx);
4247 ClangASTContext::GetPointeeType(lldb::opaque_compiler_type_t type) {
4256 ClangASTContext::GetPointerType(lldb::opaque_compiler_type_t type) {
4274 ClangASTContext::GetLValueReferenceType(lldb::opaque_compiler_type_t type) {
4282 ClangASTContext::GetRValueReferenceType(lldb::opaque_compiler_type_t type) {
4289 CompilerType ClangASTContext::GetAtomicType(lldb::opaque_compiler_type_t type) {
4296 ClangASTContext::AddConstModifier(lldb::opaque_compiler_type_t type) {
4306 ClangASTContext::AddVolatileModifier(lldb::opaque_compiler_type_t type) {
4316 ClangASTContext::AddRestrictModifier(lldb::opaque_compiler_type_t type) {
4326 ClangASTContext::CreateTypedef(lldb::opaque_compiler_type_t type,
4334 ClangASTContext::DeclContextGetAsDeclContext(compiler_decl_ctx);
4366 ClangASTContext::GetTypedefedType(lldb::opaque_compiler_type_t type) {
4378 CompilerType ClangASTContext::GetBasicTypeFromAST(lldb::BasicType basic_type) {
4379 return ClangASTContext::GetBasicType(basic_type);
4384 ClangASTContext::GetFloatTypeSemantics(size_t byte_size) {
4399 ClangASTContext::GetBitSize(lldb::opaque_compiler_type_t type,
4463 ClangASTContext::GetTypeBitAlign(lldb::opaque_compiler_type_t type,
4470 lldb::Encoding ClangASTContext::GetEncoding(lldb::opaque_compiler_type_t type,
4726 lldb::Format ClangASTContext::GetFormat(lldb::opaque_compiler_type_t type) {
4883 GetDynamicArrayInfo(ClangASTContext &ast, SymbolFile *sym_file,
4893 uint32_t ClangASTContext::GetNumChildren(lldb::opaque_compiler_type_t type,
4942 if (!ClangASTContext::RecordHasFields(base_class_decl))
5055 CompilerType ClangASTContext::GetBuiltinTypeByName(ConstString name) {
5060 ClangASTContext::GetBasicTypeEnumeration(lldb::opaque_compiler_type_t type) {
5132 void ClangASTContext::ForEachEnumerator(
5158 uint32_t ClangASTContext::GetNumFields(lldb::opaque_compiler_type_t type) {
5275 CompilerType ClangASTContext::GetFieldAtIndex(lldb::opaque_compiler_type_t type,
5378 ClangASTContext::GetNumDirectBaseClasses(lldb::opaque_compiler_type_t type) {
5430 ClangASTContext::GetNumVirtualBaseClasses(lldb::opaque_compiler_type_t type) {
5450 CompilerType ClangASTContext::GetDirectBaseClassAtIndex(
5545 CompilerType ClangASTContext::GetVirtualBaseClassAtIndex(
5593 uint32_t ClangASTContext::GetNumPointeeChildren(clang::QualType type) {
5726 CompilerType ClangASTContext::GetChildCompilerTypeAtIndex(
5796 if (!ClangASTContext::RecordHasFields(base_class_decl))
6208 uint32_t child_idx = ClangASTContext::GetNumBaseClasses(
6255 size_t ClangASTContext::GetIndexOfChildMemberWithName(
6292 child_idx + ClangASTContext::GetNumBaseClasses(
6450 // if (ClangASTContext::IsAggregateType
6494 ClangASTContext::GetIndexOfChildWithName(lldb::opaque_compiler_type_t type,
6528 !ClangASTContext::RecordHasFields(base_class_decl))
6631 // if (ClangASTContext::IsAggregateType
6689 ClangASTContext::GetNumTemplateArguments(lldb::opaque_compiler_type_t type) {
6718 ClangASTContext::GetAsTemplateSpecialization(
6743 ClangASTContext::GetTemplateArgumentKind(lldb::opaque_compiler_type_t type,
6782 ClangASTContext::GetTypeTemplateArgument(lldb::opaque_compiler_type_t type,
6798 ClangASTContext::GetIntegralTemplateArgument(lldb::opaque_compiler_type_t type,
6814 CompilerType ClangASTContext::GetTypeForFormatters(void *type) {
6820 clang::EnumDecl *ClangASTContext::GetAsEnumDecl(const CompilerType &type) {
6828 clang::RecordDecl *ClangASTContext::GetAsRecordDecl(const CompilerType &type) {
6836 clang::TagDecl *ClangASTContext::GetAsTagDecl(const CompilerType &type) {
6841 ClangASTContext::GetAsTypedefDecl(const CompilerType &type) {
6850 ClangASTContext::GetAsCXXRecordDecl(lldb::opaque_compiler_type_t type) {
6855 ClangASTContext::GetAsObjCInterfaceDecl(const CompilerType &type) {
6864 clang::FieldDecl *ClangASTContext::AddFieldToRecordType(
6870 ClangASTContext *ast =
6871 llvm::dyn_cast_or_null<ClangASTContext>(type.GetTypeSystem());
6918 ClangASTContext::ConvertAccessTypeToAccessSpecifier(access));
6956 void ClangASTContext::BuildIndirectFields(const CompilerType &type) {
6960 ClangASTContext *ast = llvm::dyn_cast<ClangASTContext>(type.GetTypeSystem());
7009 indirect_field->setAccess(ClangASTContext::UnifyAccessSpecifiers(
7039 indirect_field->setAccess(ClangASTContext::UnifyAccessSpecifiers(
7062 void ClangASTContext::SetIsPacked(const CompilerType &type) {
7064 ClangASTContext *ast =
7065 llvm::dyn_cast<ClangASTContext>(type.GetTypeSystem());
7078 clang::VarDecl *ClangASTContext::AddVariableToRecordType(
7084 ClangASTContext *ast = llvm::dyn_cast<ClangASTContext>(type.GetTypeSystem());
7110 ClangASTContext::ConvertAccessTypeToAccessSpecifier(access));
7120 clang::CXXMethodDecl *ClangASTContext::AddMethodToCXXRecordType(
7198 if (!ClangASTContext::CheckOverloadedOperatorKindParameterCount(
7235 ClangASTContext::ConvertAccessTypeToAccessSpecifier(access);
7302 void ClangASTContext::AddMethodOverridesForCXXRecordType(
7312 ClangASTContext::CreateBaseClassSpecifier(lldb::opaque_compiler_type_t type,
7320 ClangASTContext::ConvertAccessTypeToAccessSpecifier(access),
7325 bool ClangASTContext::TransferBaseClasses(
7344 bool ClangASTContext::SetObjCSuperClass(
7346 ClangASTContext *ast =
7347 llvm::dyn_cast_or_null<ClangASTContext>(type.GetTypeSystem());
7367 bool ClangASTContext::AddObjCClassProperty(
7375 ClangASTContext *ast = llvm::dyn_cast<ClangASTContext>(type.GetTypeSystem());
7556 bool ClangASTContext::IsObjCClassTypeAndHasIVars(const CompilerType &type,
7564 clang::ObjCMethodDecl *ClangASTContext::AddMethodToObjCObjectType(
7578 ClangASTContext *lldb_ast =
7579 llvm::dyn_cast<ClangASTContext>(type.GetTypeSystem());
7696 bool ClangASTContext::SetHasExternalStorage(lldb::opaque_compiler_type_t type,
7749 bool ClangASTContext::StartTagDeclarationDefinition(const CompilerType &type) {
7774 bool ClangASTContext::CompleteTagDeclarationDefinition(
7781 // ClangASTContext::StartTagDeclarationDefinition() as to how we start/end
7806 ClangASTContext *lldb_ast =
7807 llvm::dyn_cast<ClangASTContext>(type.GetTypeSystem());
7838 clang::EnumConstantDecl *ClangASTContext::AddEnumerationValueToEnumerationType(
7883 clang::EnumConstantDecl *ClangASTContext::AddEnumerationValueToEnumerationType(
7898 ClangASTContext::GetEnumerationIntegerType(lldb::opaque_compiler_type_t type) {
7914 ClangASTContext::CreateMemberPointerType(const CompilerType &type,
7918 ClangASTContext *ast =
7919 llvm::dyn_cast<ClangASTContext>(type.GetTypeSystem());
7934 ClangASTContext::dump(lldb::opaque_compiler_type_t type) const {
7942 void ClangASTContext::Dump(Stream &s) {
7947 void ClangASTContext::DumpFromSymbolFile(Stream &s,
7987 void ClangASTContext::DumpValue(
8024 if (!verbose && !ClangASTContext::RecordHasFields(base_class_decl))
8441 bool ClangASTContext::DumpTypeValue(
8564 void ClangASTContext::DumpSummary(lldb::opaque_compiler_type_t type,
8609 void ClangASTContext::DumpTypeDescription(lldb::opaque_compiler_type_t type) {
8621 void ClangASTContext::DumpTypeDescription(lldb::opaque_compiler_type_t type,
8701 void ClangASTContext::DumpTypeName(const CompilerType &type) {
8767 printf("ClangASTContext::DumpTypeName() type_class = %u", type_class);
8773 clang::ClassTemplateDecl *ClangASTContext::ParseClassTemplateDecl(
8776 const ClangASTContext::TemplateParameterInfos &template_param_infos) {
8788 void ClangASTContext::CompleteTagDecl(clang::TagDecl *decl) {
8797 void ClangASTContext::CompleteObjCInterfaceDecl(
8807 DWARFASTParser *ClangASTContext::GetDWARFParser() {
8814 PDBASTParser *ClangASTContext::GetPDBParser() {
8821 bool ClangASTContext::LayoutRecordType(
8845 ConstString ClangASTContext::DeclGetName(void *opaque_decl) {
8855 ConstString ClangASTContext::DeclGetMangledName(void *opaque_decl) {
8881 CompilerDeclContext ClangASTContext::DeclGetDeclContext(void *opaque_decl) {
8887 CompilerType ClangASTContext::DeclGetFunctionReturnType(void *opaque_decl) {
8898 size_t ClangASTContext::DeclGetFunctionNumArguments(void *opaque_decl) {
8909 CompilerType ClangASTContext::DeclGetFunctionArgumentType(void *opaque_decl,
8929 std::vector<CompilerDecl> ClangASTContext::DeclContextFindDeclByName(
9026 uint32_t ClangASTContext::CountDeclLevels(clang::DeclContext *frame_decl_ctx,
9108 ConstString ClangASTContext::DeclContextGetName(void *opaque_decl_ctx) {
9119 ClangASTContext::DeclContextGetScopeQualifiedName(void *opaque_decl_ctx) {
9130 bool ClangASTContext::DeclContextIsClassMethod(
9170 bool ClangASTContext::DeclContextIsContainedInLookup(
9188 return dc.IsValid() && isa<ClangASTContext>(dc.GetTypeSystem());
9192 ClangASTContext::DeclContextGetAsDeclContext(const CompilerDeclContext &dc) {
9199 ClangASTContext::DeclContextGetAsObjCMethodDecl(const CompilerDeclContext &dc) {
9207 ClangASTContext::DeclContextGetAsCXXMethodDecl(const CompilerDeclContext &dc) {
9215 ClangASTContext::DeclContextGetAsFunctionDecl(const CompilerDeclContext &dc) {
9223 ClangASTContext::DeclContextGetAsNamespaceDecl(const CompilerDeclContext &dc) {
9231 ClangASTContext::DeclContextGetMetaData(const CompilerDeclContext &dc,
9233 ClangASTContext *ast = llvm::cast<ClangASTContext>(dc.GetTypeSystem());
9238 ClangASTContext::DeclContextGetClangASTContext(const CompilerDeclContext &dc) {
9239 ClangASTContext *ast =
9240 llvm::dyn_cast_or_null<ClangASTContext>(dc.GetTypeSystem());
9248 : ClangASTContext(triple), m_target_wp(target.shared_from_this()),
9259 ClangASTContext::Finalize();