Lines Matching refs:getASTContext

134   lldbassert(&m1->getASTContext() == &m2->getASTContext() &&  in isOverload()
136 clang::ASTContext &context = m1->getASTContext(); in isOverload()
724 *ast_sp->getASTContext(), *ast_sp->getFileManager(), true); in CreateInstance()
814 ASTContext *ast = getASTContext(); in HasExternalSource()
822 ASTContext *ast = getASTContext(); in SetExternalSource()
830 ASTContext *ast = getASTContext(); in RemoveExternalSource()
848 ASTContext *ClangASTContext::getASTContext() { in getASTContext() function in ClangASTContext
940 m_mangle_ctx_ap.reset(getASTContext()->createMangleContext()); in getMangleContext()
1004 getASTContext(), encoding, bit_size); in GetBuiltinTypeForEncodingAndBitSize()
1154 return GetBasicType(getASTContext(), basic_type); in GetBasicType()
1171 ASTContext *ast = getASTContext(); in GetBuiltinTypeForDWARFEncodingAndBitSize()
1395 ASTContext *ast = getASTContext(); in GetCStringType()
1436 return ast->getASTContext()->hasSameType(type1_qual, type2_qual); in AreTypesSame()
1452 ASTContext *ast = &decl->getASTContext(); in GetTypeForDecl()
1462 ASTContext *ast = &decl->getASTContext(); in GetTypeForDecl()
1475 ASTContext *ast = getASTContext(); in CreateRecordType()
1587 ASTContext *ast = getASTContext(); in CreateFunctionTemplateDecl()
1618 ASTContext *ast = getASTContext(); in CreateClassTemplateDecl()
1682 ASTContext *ast = getASTContext(); in CreateTemplateTemplateParmDecl()
1707 ASTContext *ast = getASTContext(); in CreateClassTemplateSpecializationDecl()
1732 ASTContext *ast = getASTContext(); in CreateClassTemplateSpecializationType()
1800 return FieldIsBitfield(getASTContext(), field, bitfield_bit_size); in FieldIsBitfield()
1851 ASTContext *ast = getASTContext(); in CreateObjCClass()
1902 ASTContext *ast = getASTContext(); in GetUniqueNamespaceDeclaration()
1970 clang::BlockDecl *decl = clang::BlockDecl::Create(*getASTContext(), ctx, in CreateBlockDeclaration()
1999 (clang::TranslationUnitDecl *)GetTranslationUnitDecl(getASTContext()); in CreateUsingDirectiveDeclaration()
2001 *getASTContext(), decl_ctx, clang::SourceLocation(), in CreateUsingDirectiveDeclaration()
2016 *getASTContext(), current_decl_ctx, clang::SourceLocation(), in CreateUsingDeclaration()
2019 *getASTContext(), current_decl_ctx, clang::SourceLocation(), using_decl, in CreateUsingDeclaration()
2032 *getASTContext(), decl_context, clang::SourceLocation(), in CreateVariableDeclaration()
2034 name && name[0] ? &getASTContext()->Idents.getOwn(name) : nullptr, type, in CreateVariableDeclaration()
2124 return DeclarationName(&getASTContext()->Idents.get( in GetDeclarationName()
2143 return getASTContext()->DeclarationNames.getCXXOperatorName(op_kind); in GetDeclarationName()
2150 ASTContext *ast = getASTContext(); in CreateFunctionDeclaration()
2219 ASTContext *ast = getASTContext(); in CreateParameterDeclaration()
2251 ASTContext *ast = getASTContext(); in CreateArrayType()
2322 ASTContext *ast = getASTContext(); in CreateEnumerationType()
2927 getASTContext(), in IsArrayType()
2940 getASTContext(), in IsArrayType()
2951 getASTContext(), in IsArrayType()
2962 getASTContext(), llvm::cast<clang::DependentSizedArrayType>(qual_type) in IsArrayType()
3014 CompilerType(getASTContext(), vector_type->getElementType()); in IsVectorType()
3026 CompilerType(getASTContext(), ext_vector_type->getElementType()); in IsVectorType()
3038 clang::DeclContext *decl_ctx = ClangASTContext::GetASTContext(getASTContext()) in IsRuntimeGeneratedType()
3050 ClangASTContext::GetMetadata(getASTContext(), result_iface_decl); in IsRuntimeGeneratedType()
3062 return GetCompleteQualType(getASTContext(), GetQualType(type), in IsCompleteType()
3184 uint64_t field_bitwidth = getASTContext()->getTypeSize(qual_type); in IsHomogeneousAggregate()
3219 *base_type_ptr = CompilerType(getASTContext(), base_qual_type); in IsHomogeneousAggregate()
3271 return CompilerType(getASTContext(), func->getParamType(index)); in GetFunctionArgumentAtIndex()
3331 CompilerType(getASTContext(), function_pointer_type); in IsBlockPointerType()
3428 getASTContext(), llvm::cast<clang::ObjCObjectPointerType>(qual_type) in IsPointerType()
3434 getASTContext(), in IsPointerType()
3440 getASTContext(), in IsPointerType()
3446 getASTContext(), in IsPointerType()
3496 getASTContext(), llvm::cast<clang::ObjCObjectPointerType>(qual_type) in IsPointerOrReferenceType()
3502 getASTContext(), in IsPointerOrReferenceType()
3508 getASTContext(), in IsPointerOrReferenceType()
3514 getASTContext(), in IsPointerOrReferenceType()
3520 getASTContext(), in IsPointerOrReferenceType()
3526 getASTContext(), in IsPointerOrReferenceType()
3570 getASTContext(), in IsReferenceType()
3578 getASTContext(), in IsReferenceType()
3771 getASTContext(), in IsPossibleDynamicType()
3833 dynamic_pointee_type->SetCompilerType(getASTContext(), in IsPossibleDynamicType()
3852 getASTContext(), cxx_record_decl); in IsPossibleDynamicType()
3856 is_complete = CompilerType(getASTContext(), pointee_qual_type) in IsPossibleDynamicType()
3867 dynamic_pointee_type->SetCompilerType(getASTContext(), in IsPossibleDynamicType()
3879 dynamic_pointee_type->SetCompilerType(getASTContext(), in IsPossibleDynamicType()
4007 return GetCompleteQualType(getASTContext(), GetQualType(type), in GetCompleteType()
4014 clang::PrintingPolicy printing_policy(getASTContext()->getPrintingPolicy()); in GetTypeName()
4057 getASTContext(), getASTContext()->ObjCBuiltinClassTy); in GetTypeInfo()
4063 pointee_or_element_clang_type->SetCompilerType(getASTContext(), in GetTypeInfo()
4064 getASTContext()->CharTy); in GetTypeInfo()
4107 getASTContext(), qual_type->getPointeeType()); in GetTypeInfo()
4131 getASTContext(), llvm::cast<clang::ArrayType>(qual_type.getTypePtr()) in GetTypeInfo()
4143 getASTContext(), in GetTypeInfo()
4150 getASTContext(), in GetTypeInfo()
4156 getASTContext(), in GetTypeInfo()
4161 getASTContext(), in GetTypeInfo()
4165 return CompilerType(getASTContext(), in GetTypeInfo()
4180 getASTContext(), in GetTypeInfo()
4191 getASTContext(), qual_type->getPointeeType()); in GetTypeInfo()
4203 getASTContext(), qual_type->getPointeeType()); in GetTypeInfo()
4221 CompilerType(getASTContext(), in GetTypeInfo()
4227 return CompilerType(getASTContext(), in GetTypeInfo()
4234 getASTContext(), in GetTypeInfo()
4278 getASTContext()->ObjCBuiltinIdTy.getTypePtr()) in GetMinimumLanguage()
4332 return CompilerType(getASTContext(), in GetMinimumLanguage()
4413 return CompilerType(getASTContext(), in GetTypeClass()
4418 getASTContext(), in GetTypeClass()
4423 getASTContext(), in GetTypeClass()
4445 return CompilerType(getASTContext(), in GetTypeClass()
4452 getASTContext(), in GetTypeClass()
4457 getASTContext(), in GetTypeClass()
4506 CompilerType element_type(getASTContext(), in GetArrayElementType()
4523 if (clang::ASTContext *ast_ctx = getASTContext()) { in GetArrayType()
4543 return CompilerType(getASTContext(), GetCanonicalQualType(type)); in GetCanonicalType()
4564 getASTContext(), in GetFullyUnqualifiedType()
4565 GetFullyUnqualifiedType_Impl(getASTContext(), GetQualType(type))); in GetFullyUnqualifiedType()
4588 return CompilerType(getASTContext(), func->getParamType(idx)); in GetFunctionArgumentTypeAtIndex()
4601 return CompilerType(getASTContext(), func->getReturnType()); in GetFunctionReturnType()
4613 if (GetCompleteQualType(getASTContext(), qual_type)) { in GetNumMemberFunctions()
4660 return CompilerType(getASTContext(), in GetNumMemberFunctions()
4668 getASTContext(), in GetNumMemberFunctions()
4674 getASTContext(), in GetNumMemberFunctions()
4679 return CompilerType(getASTContext(), in GetNumMemberFunctions()
4701 if (GetCompleteQualType(getASTContext(), qual_type)) { in GetMemberFunctionAtIndex()
4836 return CompilerType(getASTContext(), in GetNonReferenceType()
4849 clang::ASTContext *clang_ast = ast->getASTContext(); in CreateTypedefType()
4855 decl_ctx = ast->getASTContext()->getTranslationUnitDecl(); in CreateTypedefType()
4876 return CompilerType(getASTContext(), in GetPointeeType()
4891 return CompilerType(getASTContext(), in GetPointerType()
4892 getASTContext()->getObjCObjectPointerType(qual_type)); in GetPointerType()
4895 return CompilerType(getASTContext(), in GetPointerType()
4896 getASTContext()->getPointerType(qual_type)); in GetPointerType()
4905 return CompilerType(this, getASTContext() in GetLValueReferenceType()
4915 return CompilerType(this, getASTContext() in GetRValueReferenceType()
4957 clang::ASTContext *clang_ast = getASTContext(); in CreateTypedef()
4963 decl_ctx = getASTContext()->getTranslationUnitDecl(); in CreateTypedef()
4998 return CompilerType(getASTContext(), in GetTypedefedType()
5009 return ClangASTContext::GetBasicType(getASTContext(), basic_type); in GetBasicTypeFromAST()
5023 return getASTContext()->getTypeSize(qual_type); in GetBitSize()
5037 CompilerType(getASTContext(), qual_type), bit_size)) in GetBitSize()
5059 const uint32_t bit_size = getASTContext()->getTypeSize(qual_type); in GetBitSize()
5062 return getASTContext()->getTypeSize( in GetBitSize()
5068 getASTContext()->getTypeSize( in GetBitSize()
5069 getASTContext()->ObjCBuiltinClassTy); in GetBitSize()
5078 return getASTContext()->getTypeAlign(GetQualType(type)); in GetTypeBitAlign()
5266 encoding = CompilerType(getASTContext(), complex_type->getElementType()) in GetEncoding()
5282 return CompilerType(getASTContext(), in GetEncoding()
5290 getASTContext(), in GetEncoding()
5296 getASTContext(), in GetEncoding()
5301 return CompilerType(getASTContext(), in GetEncoding()
5305 return CompilerType(getASTContext(), in GetEncoding()
5312 getASTContext(), in GetEncoding()
5317 getASTContext(), in GetEncoding()
5453 return CompilerType(getASTContext(), in GetFormat()
5459 return CompilerType(getASTContext(), in GetFormat()
5463 return CompilerType(getASTContext(), in GetFormat()
5468 getASTContext(), in GetFormat()
5472 return CompilerType(getASTContext(), in GetFormat()
5479 getASTContext(), in GetFormat()
5484 getASTContext(), in GetFormat()
5570 if (GetCompleteQualType(getASTContext(), qual_type)) { in GetNumChildren()
5614 if (GetCompleteQualType(getASTContext(), qual_type)) { in GetNumChildren()
5645 CompilerType(getASTContext(), pointee_type) in GetNumChildren()
5679 CompilerType(getASTContext(), pointee_type) in GetNumChildren()
5695 CompilerType(getASTContext(), pointee_type) in GetNumChildren()
5706 CompilerType(getASTContext(), llvm::cast<clang::TypedefType>(qual_type) in GetNumChildren()
5714 CompilerType(getASTContext(), in GetNumChildren()
5722 getASTContext(), in GetNumChildren()
5729 CompilerType(getASTContext(), in GetNumChildren()
5872 CompilerType(getASTContext(), llvm::cast<clang::TypedefType>(qual_type) in GetNumFields()
5880 CompilerType(getASTContext(), in GetNumFields()
5887 getASTContext(), in GetNumFields()
5893 count = CompilerType(getASTContext(), in GetNumFields()
6018 getASTContext()->getASTRecordLayout(record_decl); in GetFieldAtIndex()
6032 *getASTContext())) { in GetFieldAtIndex()
6041 return CompilerType(getASTContext(), field->getType()); in GetFieldAtIndex()
6059 this, GetObjCFieldAtIndex(getASTContext(), class_interface_decl, in GetFieldAtIndex()
6077 this, GetObjCFieldAtIndex(getASTContext(), class_interface_decl, in GetFieldAtIndex()
6085 return CompilerType(getASTContext(), in GetFieldAtIndex()
6094 getASTContext(), in GetFieldAtIndex()
6101 getASTContext(), in GetFieldAtIndex()
6107 return CompilerType(getASTContext(), in GetFieldAtIndex()
6258 getASTContext()->getASTRecordLayout(cxx_record_decl); in GetDirectBaseClassAtIndex()
6299 return CompilerType(getASTContext(), in GetDirectBaseClassAtIndex()
6300 getASTContext()->getObjCInterfaceType( in GetDirectBaseClassAtIndex()
6321 return CompilerType(getASTContext(), in GetDirectBaseClassAtIndex()
6322 getASTContext()->getObjCInterfaceType( in GetDirectBaseClassAtIndex()
6380 getASTContext()->getASTRecordLayout(cxx_record_decl); in GetVirtualBaseClassAtIndex()
6624 getASTContext()->getTypeSize(getASTContext()->ObjCBuiltinClassTy) / in GetChildCompilerTypeAtIndex()
6626 return CompilerType(getASTContext(), in GetChildCompilerTypeAtIndex()
6627 getASTContext()->ObjCBuiltinClassTy); in GetChildCompilerTypeAtIndex()
6642 getASTContext()->getASTRecordLayout(record_decl); in GetChildCompilerTypeAtIndex()
6673 getASTContext()->getVTableContext(); in GetChildCompilerTypeAtIndex()
6690 CompilerType base_class_clang_type(getASTContext(), in GetChildCompilerTypeAtIndex()
6723 CompilerType field_clang_type(getASTContext(), field->getType()); in GetChildCompilerTypeAtIndex()
6735 if (ClangASTContext::FieldIsBitfield(getASTContext(), *field, in GetChildCompilerTypeAtIndex()
6765 getASTContext()->getASTObjCInterfaceLayout(class_interface_decl); in GetChildCompilerTypeAtIndex()
6771 getASTContext(), getASTContext()->getObjCInterfaceType( in GetChildCompilerTypeAtIndex()
6777 getASTContext()->getObjCInterfaceType( in GetChildCompilerTypeAtIndex()
6784 getASTContext()->getTypeInfo(ivar_qual_type.getTypePtr()); in GetChildCompilerTypeAtIndex()
6790 return CompilerType(getASTContext(), ivar_qual_type); in GetChildCompilerTypeAtIndex()
6815 getASTContext()->getTypeInfo(ivar_qual_type.getTypePtr()); in GetChildCompilerTypeAtIndex()
6834 CompilerType parent_ast_type(getASTContext(), in GetChildCompilerTypeAtIndex()
6858 if (ClangASTContext::FieldIsBitfield(getASTContext(), ivar_decl, in GetChildCompilerTypeAtIndex()
6866 return CompilerType(getASTContext(), ivar_qual_type); in GetChildCompilerTypeAtIndex()
6917 CompilerType element_type(getASTContext(), array->getElementType()); in GetChildCompilerTypeAtIndex()
6939 CompilerType element_type(getASTContext(), array->getElementType()); in GetChildCompilerTypeAtIndex()
6997 CompilerType pointee_clang_type(getASTContext(), in GetChildCompilerTypeAtIndex()
7031 getASTContext(), llvm::cast<clang::TypedefType>(parent_qual_type) in GetChildCompilerTypeAtIndex()
7043 getASTContext(), in GetChildCompilerTypeAtIndex()
7054 getASTContext(), in GetChildCompilerTypeAtIndex()
7065 getASTContext(), in GetChildCompilerTypeAtIndex()
7195 CompilerType field_type(getASTContext(), field->getType()); in GetIndexOfChildMemberWithName()
7219 getASTContext()->Idents.get(name_sref); in GetIndexOfChildMemberWithName()
7307 getASTContext(), getASTContext()->getObjCInterfaceType( in GetIndexOfChildMemberWithName()
7327 getASTContext(), in GetIndexOfChildMemberWithName()
7379 CompilerType pointee_clang_type(getASTContext(), pointee_type); in GetIndexOfChildMemberWithName()
7397 return CompilerType(getASTContext(), in GetIndexOfChildMemberWithName()
7406 getASTContext(), in GetIndexOfChildMemberWithName()
7413 getASTContext(), in GetIndexOfChildMemberWithName()
7419 return CompilerType(getASTContext(), in GetIndexOfChildMemberWithName()
7473 CompilerType base_class_clang_type(getASTContext(), in GetIndexOfChildWithName()
7538 getASTContext(), in GetIndexOfChildWithName()
7589 CompilerType pointee_type(getASTContext(), in GetIndexOfChildWithName()
7601 CompilerType pointee_type(getASTContext(), in GetIndexOfChildWithName()
7629 getASTContext(), in GetIndexOfChildWithName()
7635 getASTContext(), in GetIndexOfChildWithName()
7640 return CompilerType(getASTContext(), in GetIndexOfChildWithName()
7645 return CompilerType(getASTContext(), in GetIndexOfChildWithName()
7681 return (CompilerType(getASTContext(), in GetNumTemplateArguments()
7689 getASTContext(), in GetNumTemplateArguments()
7695 getASTContext(), in GetNumTemplateArguments()
7700 return (CompilerType(getASTContext(), in GetNumTemplateArguments()
7809 return CompilerType(getASTContext(), template_arg.getAsType()); in GetTypeTemplateArgument()
7826 CompilerType(getASTContext(), template_arg.getIntegralType())}}; in GetIntegralTemplateArgument()
7889 clang::ASTContext *clang_ast = ast->getASTContext(); in AddFieldToRecordType()
8013 new (*ast->getASTContext()) clang::NamedDecl *[2]; in BuildIndirectFields()
8018 *ast->getASTContext(), record_decl, clang::SourceLocation(), in BuildIndirectFields()
8032 clang::NamedDecl **chain = new (*ast->getASTContext()) in BuildIndirectFields()
8047 *ast->getASTContext(), record_decl, clang::SourceLocation(), in BuildIndirectFields()
8088 clang::PackedAttr::CreateImplicit(*ast->getASTContext())); in SetIsPacked()
8110 ident = &ast->getASTContext()->Idents.get(name); in AddVariableToRecordType()
8113 *ast->getASTContext(), // ASTContext & in AddVariableToRecordType()
8156 clang::DeclarationName decl_name(&getASTContext()->Idents.get(name)); in AddMethodToCXXRecordType()
8180 *getASTContext(), cxx_record_decl, clang::SourceLocation(), in AddMethodToCXXRecordType()
8182 getASTContext()->DeclarationNames.getCXXDestructorName( in AddMethodToCXXRecordType()
8183 getASTContext()->getCanonicalType(record_qual_type)), in AddMethodToCXXRecordType()
8189 *getASTContext(), cxx_record_decl, clang::SourceLocation(), in AddMethodToCXXRecordType()
8191 getASTContext()->DeclarationNames.getCXXConstructorName( in AddMethodToCXXRecordType()
8192 getASTContext()->getCanonicalType(record_qual_type)), in AddMethodToCXXRecordType()
8213 *getASTContext(), cxx_record_decl, clang::SourceLocation(), in AddMethodToCXXRecordType()
8215 getASTContext()->DeclarationNames.getCXXOperatorName(op_kind), in AddMethodToCXXRecordType()
8223 *getASTContext(), cxx_record_decl, clang::SourceLocation(), in AddMethodToCXXRecordType()
8225 getASTContext()->DeclarationNames.getCXXConversionFunctionName( in AddMethodToCXXRecordType()
8226 getASTContext()->getCanonicalType( in AddMethodToCXXRecordType()
8238 *getASTContext(), cxx_record_decl, clang::SourceLocation(), in AddMethodToCXXRecordType()
8253 cxx_method_decl->addAttr(clang::UsedAttr::CreateImplicit(*getASTContext())); in AddMethodToCXXRecordType()
8257 clang::AsmLabelAttr::CreateImplicit(*getASTContext(), mangled_name)); in AddMethodToCXXRecordType()
8266 *getASTContext(), cxx_method_decl, clang::SourceLocation(), in AddMethodToCXXRecordType()
8351 getASTContext()->getTrivialTypeSourceInfo(GetQualType(type)), in CreateBaseClassSpecifier()
8380 clang::ASTContext *clang_ast = ast->getASTContext(); in SetObjCSuperClass()
8408 clang::ASTContext *clang_ast = ast->getASTContext(); in AddObjCClassProperty()
8618 clang::ASTContext *ast = lldb_ast->getASTContext(); in AddMethodToObjCObjectType()
8923 clang::ASTContext *ast = lldb_ast->getASTContext(); in CompleteTagDeclarationDefinition()
8985 *getASTContext(), enutype->getDecl(), clang::SourceLocation(), in AddEnumerationValueToEnumerationType()
8986 name ? &getASTContext()->Idents.get(name) : nullptr, // Identifier in AddEnumerationValueToEnumerationType()
9025 return CompilerType(getASTContext(), enum_decl->getIntegerType()); in GetEnumerationIntegerType()
9040 return CompilerType(ast->getASTContext(), in CreateMemberPointerType()
9041 ast->getASTContext()->getMemberPointerType( in CreateMemberPointerType()
9062 llvm::APFloat ap_float(getASTContext()->getFloatTypeSemantics(qual_type), in ConvertStringToFloatValue()
9065 const uint64_t bit_size = getASTContext()->getTypeSize(qual_type); in ConvertStringToFloatValue()
9111 getASTContext()->getASTRecordLayout(record_decl); in DumpValue()
9155 getASTContext()->getTypeInfo(base_class_qual_type); in DumpValue()
9158 CompilerType base_clang_type(getASTContext(), base_class_qual_type); in DumpValue()
9201 getASTContext()->getTypeInfo(field_type); in DumpValue()
9209 if (ClangASTContext::FieldIsBitfield(getASTContext(), *field, in DumpValue()
9225 CompilerType field_clang_type(getASTContext(), field_type); in DumpValue()
9290 getASTContext()->getTypeInfo(element_qual_type); in DumpValue()
9305 CompilerType element_clang_type(getASTContext(), element_qual_type); in DumpValue()
9356 CompilerType typedef_clang_type(getASTContext(), typedef_qual_type); in DumpValue()
9359 getASTContext()->getTypeInfo(typedef_qual_type); in DumpValue()
9381 CompilerType elaborated_clang_type(getASTContext(), elaborated_qual_type); in DumpValue()
9384 getASTContext()->getTypeInfo(elaborated_qual_type); in DumpValue()
9406 CompilerType elaborated_clang_type(getASTContext(), elaborated_qual_type); in DumpValue()
9409 getASTContext()->getTypeInfo(elaborated_qual_type); in DumpValue()
9431 CompilerType desugar_clang_type(getASTContext(), desugar_qual_type); in DumpValue()
9435 getASTContext()->getTypeInfo(desugar_qual_type); in DumpValue()
9485 CompilerType typedef_clang_type(getASTContext(), typedef_qual_type); in DumpTypeValue()
9489 getASTContext()->getTypeInfo(typedef_qual_type); in DumpTypeValue()
9667 ClangASTContext::GetMetadata(getASTContext(), type); in DumpTypeDescription()
9694 clang::PrintingPolicy policy = getASTContext()->getPrintingPolicy(); in DumpTypeDescription()
9715 CompilerType(getASTContext(), in DumpTypeDescription()
9721 CompilerType(getASTContext(), in DumpTypeDescription()
9727 CompilerType(getASTContext(), in DumpTypeDescription()
9742 cxx_record_decl->print(llvm_ostrm, getASTContext()->getPrintingPolicy(), in DumpTypeDescription()
9745 record_decl->print(llvm_ostrm, getASTContext()->getPrintingPolicy(), in DumpTypeDescription()
10311 return ast->getASTContext(); in DeclContextGetClangASTContext()