Home | History | Annotate | Download | only in AST

Lines Matching refs:cast

499     if (cast<BuiltinType>(T1)->getKind() != cast<BuiltinType>(T2)->getKind())
505 cast<ComplexType>(T1)->getElementType(),
506 cast<ComplexType>(T2)->getElementType()))
513 cast<AdjustedType>(T1)->getOriginalType(),
514 cast<AdjustedType>(T2)->getOriginalType()))
520 cast<PointerType>(T1)->getPointeeType(),
521 cast<PointerType>(T2)->getPointeeType()))
527 cast<BlockPointerType>(T1)->getPointeeType(),
528 cast<BlockPointerType>(T2)->getPointeeType()))
534 const ReferenceType *Ref1 = cast<ReferenceType>(T1);
535 const ReferenceType *Ref2 = cast<ReferenceType>(T2);
548 const MemberPointerType *MemPtr1 = cast<MemberPointerType>(T1);
549 const MemberPointerType *MemPtr2 = cast<MemberPointerType>(T2);
562 const ConstantArrayType *Array1 = cast<ConstantArrayType>(T1);
563 const ConstantArrayType *Array2 = cast<ConstantArrayType>(T2);
574 cast<ArrayType>(T1),
575 cast<ArrayType>(T2)))
580 const VariableArrayType *Array1 = cast<VariableArrayType>(T1);
581 const VariableArrayType *Array2 = cast<VariableArrayType>(T2);
593 const DependentSizedArrayType *Array1 = cast<DependentSizedArrayType>(T1);
594 const DependentSizedArrayType *Array2 = cast<DependentSizedArrayType>(T2);
607 = cast<DependentSizedExtVectorType>(T1);
609 = cast<DependentSizedExtVectorType>(T2);
622 const VectorType *Vec1 = cast<VectorType>(T1);
623 const VectorType *Vec2 = cast<VectorType>(T2);
636 const FunctionProtoType *Proto1 = cast<FunctionProtoType>(T1);
637 const FunctionProtoType *Proto2 = cast<FunctionProtoType>(T2);
671 const FunctionType *Function1 = cast<FunctionType>(T1);
672 const FunctionType *Function2 = cast<FunctionType>(T2);
683 cast<UnresolvedUsingType>(T1)->getDecl(),
684 cast<UnresolvedUsingType>(T2)->getDecl()))
691 cast<AttributedType>(T1)->getModifiedType(),
692 cast<AttributedType>(T2)->getModifiedType()))
695 cast<AttributedType>(T1)->getEquivalentType(),
696 cast<AttributedType>(T2)->getEquivalentType()))
702 cast<ParenType>(T1)->getInnerType(),
703 cast<ParenType>(T2)->getInnerType()))
709 cast<TypedefType>(T1)->getDecl(),
710 cast<TypedefType>(T2)->getDecl()))
716 cast<TypeOfExprType>(T1)->getUnderlyingExpr(),
717 cast<TypeOfExprType>(T2)->getUnderlyingExpr()))
723 cast<TypeOfType>(T1)->getUnderlyingType(),
724 cast<TypeOfType>(T2)->getUnderlyingType()))
730 cast<UnaryTransformType>(T1)->getUnderlyingType(),
731 cast<UnaryTransformType>(T1)->getUnderlyingType()))
737 cast<DecltypeType>(T1)->getUnderlyingExpr(),
738 cast<DecltypeType>(T2)->getUnderlyingExpr()))
744 cast<AutoType>(T1)->getDeducedType(),
745 cast<AutoType>(T2)->getDeducedType()))
752 cast<TagType>(T1)->getDecl(),
753 cast<TagType>(T2)->getDecl()))
758 const TemplateTypeParmType *Parm1 = cast<TemplateTypeParmType>(T1);
759 const TemplateTypeParmType *Parm2 = cast<TemplateTypeParmType>(T2);
773 = cast<SubstTemplateTypeParmType>(T1);
775 = cast<SubstTemplateTypeParmType>(T2);
789 = cast<SubstTemplateTypeParmPackType>(T1);
791 = cast<SubstTemplateTypeParmPackType>(T2);
804 = cast<TemplateSpecializationType>(T1);
806 = cast<TemplateSpecializationType>(T2);
822 const ElaboratedType *Elab1 = cast<ElaboratedType>(T1);
823 const ElaboratedType *Elab2 = cast<ElaboratedType>(T2);
839 const InjectedClassNameType *Inj1 = cast<InjectedClassNameType>(T1);
840 const InjectedClassNameType *Inj2 = cast<InjectedClassNameType>(T2);
849 const DependentNameType *Typename1 = cast<DependentNameType>(T1);
850 const DependentNameType *Typename2 = cast<DependentNameType>(T2);
864 cast<DependentTemplateSpecializationType>(T1);
866 cast<DependentTemplateSpecializationType>(T2);
886 cast<PackExpansionType>(T1)->getPattern(),
887 cast<PackExpansionType>(T2)->getPattern()))
892 const ObjCInterfaceType *Iface1 = cast<ObjCInterfaceType>(T1);
893 const ObjCInterfaceType *Iface2 = cast<ObjCInterfaceType>(T2);
901 const ObjCObjectType *Obj1 = cast<ObjCObjectType>(T1);
902 const ObjCObjectType *Obj2 = cast<ObjCObjectType>(T2);
919 const ObjCObjectPointerType *Ptr1 = cast<ObjCObjectPointerType>(T1);
920 const ObjCObjectPointerType *Ptr2 = cast<ObjCObjectPointerType>(T2);
930 cast<AtomicType>(T1)->getValueType(),
931 cast<AtomicType>(T2)->getValueType()))
938 cast<PipeType>(T1)->getElementType(),
939 cast<PipeType>(T2)->getElementType()))
952 RecordDecl *Owner2 = cast<RecordDecl>(Field2->getDeclContext());
2112 CXXRecordDecl *FromCXX = cast<CXXRecordDecl>(From);
2262 ToParams.push_back(cast<NamedDecl>(To));
2476 MergeWithNamespace = cast<NamespaceDecl>(DC)->getAnonymousNamespace();
2518 cast<NamespaceDecl>(DC)->setAnonymousNamespace(ToNamespace);
2928 = EnumConstantDecl::Create(Importer.getToContext(), cast<EnumDecl>(DC), Loc,
3042 cast<CXXRecordDecl>(DC),
3061 CXXConstructorDecl *ToCtor = llvm::cast<CXXConstructorDecl>(ToFunction);
3067 cast<CXXRecordDecl>(DC),
3075 cast<CXXRecordDecl>(DC),
3084 cast<CXXRecordDecl>(DC),
3289 NamedChain[i++] = cast<NamedDecl>(D);
3347 cast<ObjCContainerDecl>(DC),
5769 // TODO: import cast paths
6133 ToTag->setTypedefNameForAnonDecl(cast<TypedefNameDecl>(ToD));
6148 DeclContext *ToDC = cast_or_null<DeclContext>(Import(cast<Decl>(FromDC)));
6155 RecordDecl *FromRecord = cast<RecordDecl>(FromDC);
6165 EnumDecl *FromEnum = cast<EnumDecl>(FromDC);
6175 ObjCInterfaceDecl *FromClass = cast<ObjCInterfaceDecl>(FromDC);
6185 ObjCProtocolDecl *FromProto = cast<ObjCProtocolDecl>(FromDC);
6203 return cast_or_null<Expr>(Import(cast<Stmt>(FromE)));
6241 cast<NamespaceDecl>(Import(FromNNS->getAsNamespace()))) {
6248 cast<NamespaceAliasDecl>(Import(FromNNS->getAsNamespaceAlias()))) {
6258 cast<CXXRecordDecl>(Import(FromNNS->getAsRecordDecl()))) {
6511 if (DeclContext *FromDC = cast<DeclContext>(From)) {
6516 Importer.ImportDefinition(cast<RecordDecl>(FromDC), ToRecord,
6524 Importer.ImportDefinition(cast<EnumDecl>(FromDC), ToEnum,
6532 Importer.ImportDefinition(cast<ObjCInterfaceDecl>(FromDC), ToIFace,
6540 Importer.ImportDefinition(cast<ObjCProtocolDecl>(FromDC), ToProto,