Lines Matching refs:m_ast
178 m_ast (ast)
211 return ClangASTType(m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).IsAggregateType();
213 return ClangASTType(m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).IsAggregateType();
215 return ClangASTType(m_ast, cast<ParenType>(qual_type)->desugar()).IsAggregateType();
240 element_type_ptr->SetClangType (m_ast, cast<ConstantArrayType>(qual_type)->getElementType());
247 element_type_ptr->SetClangType (m_ast, cast<IncompleteArrayType>(qual_type)->getElementType());
256 element_type_ptr->SetClangType (m_ast, cast<VariableArrayType>(qual_type)->getElementType());
263 element_type_ptr->SetClangType (m_ast, cast<DependentSizedArrayType>(qual_type)->getElementType());
269 return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).IsArrayType (element_type_ptr,
273 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).IsArrayType (element_type_ptr,
277 return ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).IsArrayType (element_type_ptr,
307 return GetCompleteQualType (m_ast, GetQualType(), allow_completion);
369 return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).IsFunctionType();
371 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).IsFunctionType();
373 return ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).IsFunctionType();
380 return ClangASTType (m_ast, reference_type->getPointeeType()).IsFunctionType();
405 return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).IsFunctionPointerType();
407 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).IsFunctionPointerType();
409 return ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).IsFunctionPointerType();
416 return ClangASTType (m_ast, reference_type->getPointeeType()).IsFunctionPointerType();
467 pointee_type->SetClangType (m_ast, cast<ObjCObjectPointerType>(qual_type)->getPointeeType());
471 pointee_type->SetClangType (m_ast
475 pointee_type->SetClangType (m_ast, cast<PointerType>(qual_type)->getPointeeType());
479 pointee_type->SetClangType (m_ast, cast<MemberPointerType>(qual_type)->getPointeeType());
482 return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).IsPointerType(pointee_type);
484 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).IsPointerType(pointee_type);
486 return ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).IsPointerType(pointee_type);
518 pointee_type->SetClangType(m_ast, cast<ObjCObjectPointerType>(qual_type)->getPointeeType());
522 pointee_type->SetClangType(m_ast, cast<BlockPointerType>(qual_type)->getPointeeType());
526 pointee_type->SetClangType(m_ast, cast<PointerType>(qual_type)->getPointeeType());
530 pointee_type->SetClangType(m_ast, cast<MemberPointerType>(qual_type)->getPointeeType());
534 pointee_type->SetClangType(m_ast, cast<LValueReferenceType>(qual_type)->desugar());
538 pointee_type->SetClangType(m_ast, cast<LValueReferenceType>(qual_type)->desugar());
541 return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).IsPointerOrReferenceType(pointee_type);
543 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).IsPointerOrReferenceType(pointee_type);
545 return ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).IsPointerOrReferenceType(pointee_type);
568 pointee_type->SetClangType(m_ast, cast<LValueReferenceType>(qual_type)->desugar());
572 pointee_type->SetClangType(m_ast, cast<LValueReferenceType>(qual_type)->desugar());
575 return ClangASTType(m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).IsReferenceType(pointee_type);
577 return ClangASTType(m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).IsReferenceType(pointee_type);
579 return ClangASTType(m_ast, cast<clang::ParenType>(qual_type)->desugar()).IsReferenceType(pointee_type);
609 if (ClangASTType (m_ast, CT->getElementType()).IsFloatingPointType (count, is_complex))
618 if (ClangASTType (m_ast, VT->getElementType()).IsFloatingPointType (count, is_complex))
731 dynamic_pointee_type->SetClangType(m_ast, m_type);
740 dynamic_pointee_type->SetClangType(m_ast, cast<ObjCObjectPointerType>(qual_type)->getPointeeType());
757 return ClangASTType (m_ast,
763 return ClangASTType (m_ast,
769 return ClangASTType (m_ast,
791 dynamic_pointee_type->SetClangType(m_ast, pointee_qual_type);
851 ClangASTMetadata *metadata = ClangASTContext::GetMetadata (m_ast, cxx_record_decl);
856 is_complete = ClangASTType(m_ast, pointee_qual_type).GetCompleteType();
867 dynamic_pointee_type->SetClangType(m_ast, pointee_qual_type);
879 dynamic_pointee_type->SetClangType(m_ast, pointee_qual_type);
1001 class_type_ptr->SetClangType (m_ast, QualType(obj_pointer_type->getInterfaceType(), 0));
1043 return GetCompleteQualType (m_ast, GetQualType(), allow_completion);
1052 if (m_ast)
1053 return m_ast->getTypeSize(m_ast->VoidPtrTy) / 8;
1081 PrintingPolicy printing_policy (m_ast->getPrintingPolicy());
1124 pointee_or_element_clang_type->SetClangType(m_ast, m_ast->ObjCBuiltinClassTy);
1130 pointee_or_element_clang_type->SetClangType(m_ast, m_ast->CharTy);
1174 pointee_or_element_clang_type->SetClangType(m_ast, qual_type->getPointeeType());
1198 pointee_or_element_clang_type->SetClangType(m_ast, cast<ArrayType>(qual_type.getTypePtr())->getElementType());
1208 pointee_or_element_clang_type->SetClangType(m_ast, cast<EnumType>(qual_type)->getDecl()->getIntegerType());
1212 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetTypeInfo (pointee_or_element_clang_type);
1214 return ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).GetTypeInfo (pointee_or_element_clang_type);
1223 pointee_or_element_clang_type->SetClangType(m_ast, cast<ReferenceType>(qual_type.getTypePtr())->getPointeeType());
1230 pointee_or_element_clang_type->SetClangType(m_ast, qual_type->getPointeeType());
1238 pointee_or_element_clang_type->SetClangType(m_ast, qual_type->getPointeeType());
1252 return eTypeIsTypedef | ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetTypeInfo (pointee_or_element_clang_type);
1298 if (pointee_type.getTypePtr() == m_ast->ObjCBuiltinIdTy.getTypePtr())
1356 return ClangASTType(m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetMinimumLanguage();
1412 return ClangASTType(m_ast, cast<ParenType>(qual_type)->desugar()).GetTypeClass();
1414 return ClangASTType(m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetTypeClass();
1440 m_ast = ast;
1463 return ClangASTType (m_ast, result);
1475 return ClangASTType (m_ast, result);
1487 return ClangASTType (m_ast, result);
1499 ClangASTType element_type (m_ast, qual_type.getTypePtr()->getArrayElementTypeNoTypeQual()->getCanonicalTypeUnqualified());
1514 return ClangASTType (m_ast, GetCanonicalQualType());
1535 return ClangASTType(m_ast, GetFullyUnqualifiedType_Impl(m_ast, GetQualType()));
1562 return ClangASTType(m_ast, func->getArgType(idx));
1576 return ClangASTType(m_ast, func->getResultType());
1587 return ClangASTType(m_ast, m_ast->getLValueReferenceType(GetQualType()));
1597 return ClangASTType(m_ast, m_ast->getRValueReferenceType(GetQualType()));
1606 return ClangASTType(m_ast, GetQualType().getNonReferenceType());
1618 decl_ctx = m_ast->getTranslationUnitDecl();
1619 TypedefDecl *decl = TypedefDecl::Create (*m_ast,
1623 &m_ast->Idents.get(typedef_name),
1624 m_ast->getTrivialTypeSourceInfo(qual_type));
1629 return ClangASTType (m_ast, m_ast->getTypedefType (decl));
1641 return ClangASTType (m_ast, qual_type.getTypePtr()->getPointeeType());
1658 return ClangASTType(m_ast, m_ast->getObjCObjectPointerType(qual_type).getAsOpaquePtr());
1661 return ClangASTType(m_ast, m_ast->getPointerType(qual_type).getAsOpaquePtr());
1674 return ClangASTType (m_ast, typedef_type->getDecl()->getUnderlyingType());
1686 return ClangASTType (m_ast, qual_type);
1700 return ClangASTContext::GetBasicType(m_ast, basic_type);
1713 const uint32_t bit_size = m_ast->getTypeSize (qual_type);
1717 return m_ast->getTypeSize (qual_type->getArrayElementTypeNoTypeQual()->getCanonicalTypeUnqualified());
1720 return bit_size + m_ast->getTypeSize(m_ast->ObjCBuiltinClassTy);
1736 return m_ast->getTypeAlign(GetQualType());
1828 encoding = ClangASTType(m_ast, complex_type->getElementType()).GetEncoding(count);
1840 return ClangASTType(m_ast
1843 return ClangASTType(m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetEncoding(count);
1846 return ClangASTType(m_ast, cast<ParenType>(qual_type)->desugar()).GetEncoding(count);
1971 return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetFormat();
1973 return ClangASTType (m_ast, cast<AutoType>(qual_type)->desugar()).GetFormat();
1975 return ClangASTType (m_ast, cast<ParenType>(qual_type)->desugar()).GetFormat();
1977 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetFormat();
2045 if (GetCompleteQualType (m_ast, qual_type))
2088 if (GetCompleteQualType (m_ast, qual_type))
2121 uint32_t num_pointee_children = ClangASTType (m_ast,pointee_type).GetNumChildren (omit_empty_base_classes);
2143 uint32_t num_pointee_children = ClangASTType (m_ast,pointee_type).GetNumChildren (omit_empty_base_classes);
2148 num_children = ClangASTType (m_ast, pointee_type).GetNumPointeeChildren();
2160 uint32_t num_pointee_children = ClangASTType (m_ast, pointee_type).GetNumChildren (omit_empty_base_classes);
2171 num_children = ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetNumChildren (omit_empty_base_classes);
2175 num_children = ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetNumChildren (omit_empty_base_classes);
2179 num_children = ClangASTType (m_ast, cast<ParenType>(qual_type)->desugar()).GetNumChildren (omit_empty_base_classes);
2303 count = ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetNumDirectBaseClasses ();
2307 count = ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetNumDirectBaseClasses ();
2311 return ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).GetNumDirectBaseClasses ();
2340 count = ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetNumVirtualBaseClasses();
2344 count = ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetNumVirtualBaseClasses();
2348 count = ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).GetNumVirtualBaseClasses();
2388 count = ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetNumFields();
2392 count = ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetNumFields();
2396 count = ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).GetNumFields();
2460 const ASTRecordLayout &record_layout = m_ast->getASTRecordLayout(cxx_record_decl);
2467 return ClangASTType (m_ast, base_class->getType());
2488 return ClangASTType (m_ast, m_ast->getObjCInterfaceType(superclass_interface_decl));
2511 return ClangASTType (m_ast, m_ast->getObjCInterfaceType(superclass_interface_decl));
2520 return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetDirectBaseClassAtIndex (idx, bit_offset_ptr);
2523 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetDirectBaseClassAtIndex (idx, bit_offset_ptr);
2526 return ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).GetDirectBaseClassAtIndex (idx, bit_offset_ptr);
2560 const ASTRecordLayout &record_layout = m_ast->getASTRecordLayout(cxx_record_decl);
2565 return ClangASTType (m_ast, base_class->getType());
2573 return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetVirtualBaseClassAtIndex (idx, bit_offset_ptr);
2576 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetVirtualBaseClassAtIndex (idx, bit_offset_ptr);
2579 return ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).GetVirtualBaseClassAtIndex (idx, bit_offset_ptr);
2679 const ASTRecordLayout &record_layout = m_ast->getASTRecordLayout(record_decl);
2693 if (bitfield_bit_size_expr && bitfield_bit_size_expr->EvaluateAsInt(bitfield_apsint, *m_ast))
2702 return ClangASTType (m_ast, field->getType());
2715 return ClangASTType (m_ast, GetObjCFieldAtIndex(m_ast, class_interface_decl, idx, name, bit_offset_ptr, bitfield_bit_size_ptr, is_bitfield_ptr));
2729 return ClangASTType (m_ast, GetObjCFieldAtIndex(m_ast, class_interface_decl, idx, name, bit_offset_ptr, bitfield_bit_size_ptr, is_bitfield_ptr));
2736 return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).
2744 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).
2752 return ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).
2869 case clang::Type::Paren: return ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).GetNumPointeeChildren ();
2870 case clang::Type::Typedef: return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetNumPointeeChildren ();
2871 case clang::Type::Elaborated: return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetNumPointeeChildren ();
2929 child_byte_size = m_ast->getTypeSize(m_ast->ObjCBuiltinClassTy) / CHAR_BIT;
2930 return ClangASTType (m_ast, m_ast->ObjCBuiltinClassTy);
2944 const ASTRecordLayout &record_layout = m_ast->getASTRecordLayout(record_decl);
2979 ClangASTType base_class_clang_type(m_ast, base_class->getType());
3007 ClangASTType field_clang_type (m_ast, field->getType());
3014 if (ClangASTContext::FieldIsBitfield (m_ast, *field, child_bitfield_bit_size))
3037 const ASTRecordLayout &interface_layout = m_ast->getASTObjCInterfaceLayout(class_interface_decl);
3043 ClangASTType base_class_clang_type (m_ast, m_ast->getObjCInterfaceType(superclass_interface_decl));
3048 QualType ivar_qual_type(m_ast->getObjCInterfaceType(superclass_interface_decl));
3053 std::pair<uint64_t, unsigned> ivar_type_info = m_ast->getTypeInfo(ivar_qual_type.getTypePtr());
3059 return ClangASTType (m_ast, ivar_qual_type);
3085 std::pair<uint64_t, unsigned> ivar_type_info = m_ast->getTypeInfo(ivar_qual_type.getTypePtr());
3103 ClangASTType parent_ast_type (m_ast, parent_qual_type);
3121 if (ClangASTContext::FieldIsBitfield (m_ast, ivar_decl, child_bitfield_bit_size))
3128 return ClangASTType (m_ast, ivar_qual_type);
3188 ClangASTType element_type (m_ast, array->getElementType());
3209 ClangASTType element_type (m_ast, array->getElementType());
3277 ClangASTType pointee_clang_type (m_ast, reference_type->getPointeeType());
3317 ClangASTType typedefed_clang_type (m_ast, cast<TypedefType>(parent_qual_type)->getDecl()->getUnderlyingType());
3336 ClangASTType elaborated_clang_type (m_ast, cast<ElaboratedType>(parent_qual_type)->getNamedType());
3354 ClangASTType paren_clang_type (m_ast, llvm::cast<clang::ParenType>(parent_qual_type)->desugar());
3526 IdentifierInfo & ident_ref = m_ast->Idents.get(name_sref);
3614 ClangASTType superclass_clang_type (m_ast, m_ast->getObjCInterfaceType(superclass_interface_decl));
3636 ClangASTType objc_object_clang_type (m_ast, cast<ObjCObjectPointerType>(qual_type.getTypePtr())->getPointeeType());
3684 ClangASTType pointee_clang_type (m_ast, pointee_type);
3709 return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetIndexOfChildMemberWithName (name,
3714 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetIndexOfChildMemberWithName (name,
3719 return ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).GetIndexOfChildMemberWithName (name,
3769 ClangASTType base_class_clang_type (m_ast, base_class->getType());
3834 ClangASTType pointee_clang_type (m_ast, cast<ObjCObjectPointerType>(qual_type.getTypePtr())->getPointeeType());
3878 ClangASTType pointee_type (m_ast, reference_type->getPointeeType());
3890 ClangASTType pointee_type (m_ast, pointer_type->getPointeeType());
3918 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetIndexOfChildWithName (name, omit_empty_base_classes);
3921 return ClangASTType (m_ast, cast<clang::ParenType>(qual_type)->desugar()).GetIndexOfChildWithName (name, omit_empty_base_classes);
3924 return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetIndexOfChildWithName (name, omit_empty_base_classes);
3958 return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetNumTemplateArguments();
3961 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetNumTemplateArguments();
3964 return ClangASTType (m_ast, cast<ParenType>(qual_type)->desugar()).GetNumTemplateArguments();
4001 return ClangASTType(m_ast, template_arg.getAsType());
4009 return ClangASTType(m_ast, template_arg.getIntegralType());
4037 return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetTemplateArgument (arg_idx, kind);
4040 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetTemplateArgument (arg_idx, kind);
4043 return ClangASTType (m_ast, cast<ParenType>(qual_type)->desugar()).GetTemplateArgument (arg_idx, kind);
4323 APInt bitfield_bit_size_apint(m_ast->getTypeSize(m_ast->IntTy), bitfield_bit_size);
4324 bit_width = new (*m_ast)IntegerLiteral (*m_ast, bitfield_bit_size_apint, m_ast->IntTy, SourceLocation());
4330 field = FieldDecl::Create (*m_ast,
4334 name ? &m_ast->Idents.get(name) : NULL, // Identifier
4376 field = ObjCIvarDecl::Create (*m_ast,
4380 name ? &m_ast->Idents.get(name) : NULL, // Identifier
4436 NamedDecl **chain = new (*m_ast) NamedDecl*[2];
4439 IndirectFieldDecl *indirect_field = IndirectFieldDecl::Create(*m_ast,
4455 NamedDecl **chain = new (*m_ast) NamedDecl*[nested_chain_size + 1];
4468 IndirectFieldDecl *indirect_field = IndirectFieldDecl::Create(*m_ast,
4514 var_decl = VarDecl::Create (*m_ast, // ASTContext &
4518 name ? &m_ast->Idents.get(name) : NULL, // IdentifierInfo *
4561 DeclarationName decl_name (&m_ast->Idents.get(name));
4583 cxx_dtor_decl = CXXDestructorDecl::Create (*m_ast,
4586 DeclarationNameInfo (m_ast->DeclarationNames.getCXXDestructorName (m_ast->getCanonicalType (record_qual_type)), SourceLocation()),
4595 cxx_ctor_decl = CXXConstructorDecl::Create (*m_ast,
4598 DeclarationNameInfo (m_ast->DeclarationNames.getCXXConstructorName (m_ast->getCanonicalType (record_qual_type)), SourceLocation()),
4623 cxx_method_decl = CXXMethodDecl::Create (*m_ast,
4626 DeclarationNameInfo (m_ast->DeclarationNames.getCXXOperatorName (op_kind), SourceLocation()),
4637 cxx_method_decl = CXXConversionDecl::Create (*m_ast,
4640 DeclarationNameInfo (m_ast->DeclarationNames.getCXXConversionFunctionName (m_ast->getCanonicalType (function_type->getResultType())), SourceLocation()),
4652 cxx_method_decl = CXXMethodDecl::Create (*m_ast,
4671 cxx_method_decl->addAttr(::new (*m_ast) UsedAttr(SourceRange(), *m_ast));
4681 params.push_back (ParmVarDecl::Create (*m_ast,
4756 m_ast->getTrivialTypeSourceInfo (GetQualType()),
4824 property_clang_type_to_access = ClangASTType (m_ast, ivar_decl->getType());
4830 prop_type_source = m_ast->getTrivialTypeSourceInfo (ivar_decl->getType());
4832 prop_type_source = m_ast->getTrivialTypeSourceInfo (property_clang_type.GetQualType());
4834 ObjCPropertyDecl *property_decl = ObjCPropertyDecl::Create (*m_ast,
4837 &m_ast->Idents.get(property_name),
4845 ClangASTContext::SetMetadata(m_ast, property_decl, *metadata);
4854 clang::IdentifierInfo *setter_ident = &m_ast->Idents.get(property_setter_no_colon.c_str());
4855 setter_sel = m_ast->Selectors.getSelector(1, &setter_ident);
4862 clang::IdentifierInfo *setter_ident = &m_ast->Idents.get(setter_sel_string.c_str());
4863 setter_sel = m_ast->Selectors.getSelector(1, &setter_ident);
4870 clang::IdentifierInfo *getter_ident = &m_ast->Idents.get(property_getter_name);
4871 getter_sel = m_ast->Selectors.getSelector(0, &getter_ident);
4875 clang::IdentifierInfo *getter_ident = &m_ast->Idents.get(property_name);
4876 getter_sel = m_ast->Selectors.getSelector(0, &getter_ident);
4907 ObjCMethodDecl *getter = ObjCMethodDecl::Create (*m_ast,
4923 ClangASTContext::SetMetadata(m_ast, getter, *metadata);
4925 getter->setMethodParams(*m_ast, ArrayRef<ParmVarDecl*>(), ArrayRef<SourceLocation>());
4932 QualType result_type = m_ast->VoidTy;
4942 ObjCMethodDecl *setter = ObjCMethodDecl::Create (*m_ast,
4958 ClangASTContext::SetMetadata(m_ast, setter, *metadata);
4962 params.push_back (ParmVarDecl::Create (*m_ast,
4972 setter->setMethodParams(*m_ast, ArrayRef<ParmVarDecl*>(params), ArrayRef<SourceLocation>());
5028 selector_idents.push_back (&m_ast->Idents.get (StringRef (start, len)));
5037 clang::Selector method_selector = m_ast->Selectors.getSelector (num_selectors_with_args ? selector_idents.size() : 0,
5064 ObjCMethodDecl *objc_method_decl = ObjCMethodDecl::Create (*m_ast,
5089 params.push_back (ParmVarDecl::Create (*m_ast,
5100 objc_method_decl->setMethodParams(*m_ast, ArrayRef<ParmVarDecl*>(params), ArrayRef<SourceLocation>());
5142 case clang::Type::ObjCObjectPointer: return ClangASTType (m_ast, cast<ObjCObjectPointerType>(qual_type.getTypePtr())->getPointeeType()).GetDeclContextForType();
5145 case clang::Type::Typedef: return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).GetDeclContextForType();
5146 case clang::Type::Elaborated: return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).GetDeclContextForType();
5147 case clang::Type::Paren: return ClangASTType (m_ast, cast<ParenType>(qual_type)->desugar()).GetDeclContextForType();
5251 return ClangASTType (m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).SetHasExternalStorage (has_extern);
5254 return ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).SetHasExternalStorage (has_extern);
5257 return ClangASTType (m_ast, cast<ParenType>(qual_type)->desugar()).SetHasExternalStorage (has_extern);
5359 if (m_ast->getTypeSize(enum_decl->getIntegerType()) < m_ast->getTypeSize(m_ast->IntTy))
5362 promotion_qual_type = m_ast->IntTy;
5364 promotion_qual_type = m_ast->UnsignedIntTy;
5406 EnumConstantDecl::Create (*m_ast,
5409 name ? &m_ast->Idents.get(name) : NULL, // Identifier
5443 return ClangASTType (m_ast, enum_decl->getIntegerType());
5454 return ClangASTType (m_ast, m_ast->getMemberPointerType (pointee_type.GetQualType(),
5476 m_ast->getFloatTypeSemantics(qual_type), s_sref);
5478 const uint64_t bit_size = m_ast->getTypeSize (qual_type);
5535 const ASTRecordLayout &record_layout = m_ast->getASTRecordLayout(record_decl);
5570 std::pair<uint64_t, unsigned> base_class_type_info = m_ast->getTypeInfo(base_class_qual_type);
5573 ClangASTType base_clang_type(m_ast, base_class_qual_type);
5609 std::pair<uint64_t, unsigned> field_type_info = m_ast->getTypeInfo(field_type);
5616 if (ClangASTContext::FieldIsBitfield (m_ast, *field, field_bitfield_bit_size))
5632 ClangASTType field_clang_type (m_ast, field_type);
5688 std::pair<uint64_t, unsigned> field_type_info = m_ast->getTypeInfo(element_qual_type);
5704 ClangASTType element_clang_type(m_ast, element_qual_type);
5749 ClangASTType typedef_clang_type (m_ast, typedef_qual_type);
5751 std::pair<uint64_t, unsigned> typedef_type_info = m_ast->getTypeInfo(typedef_qual_type);
5772 ClangASTType elaborated_clang_type (m_ast, elaborated_qual_type);
5774 std::pair<uint64_t, unsigned> elaborated_type_info = m_ast->getTypeInfo(elaborated_qual_type);
5795 ClangASTType desugar_clang_type (m_ast, desugar_qual_type);
5798 std::pair<uint64_t, unsigned> desugar_type_info = m_ast->getTypeInfo(desugar_qual_type);
5863 ClangASTType typedef_clang_type (m_ast, typedef_qual_type);
5866 std::pair<uint64_t, unsigned> typedef_type_info = m_ast->getTypeInfo(typedef_qual_type);
6052 ClangASTMetadata *metadata = ClangASTContext::GetMetadata (m_ast, m_type);
6084 PrintingPolicy policy = m_ast->getPrintingPolicy();
6108 ClangASTType (m_ast, cast<ElaboratedType>(qual_type)->getNamedType()).DumpTypeDescription(s);
6112 ClangASTType (m_ast, cast<ParenType>(qual_type)->desugar()).DumpTypeDescription(s);
6124 cxx_record_decl->print(llvm_ostrm, m_ast->getPrintingPolicy(), s->GetIndentLevel());
6126 record_decl->print(llvm_ostrm, m_ast->getPrintingPolicy(), s->GetIndentLevel());