reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/include/clang/AST/BuiltinTypes.def
   58 BUILTIN_TYPE(Void, VoidTy)
   63 UNSIGNED_TYPE(Bool, BoolTy)
   69 UNSIGNED_TYPE(UChar, UnsignedCharTy)
   75 UNSIGNED_TYPE(Char8, Char8Ty)
   78 UNSIGNED_TYPE(Char16, Char16Ty)
   81 UNSIGNED_TYPE(Char32, Char32Ty)
   84 UNSIGNED_TYPE(UShort, UnsignedShortTy)
   87 UNSIGNED_TYPE(UInt, UnsignedIntTy)
   90 UNSIGNED_TYPE(ULong, UnsignedLongTy)
   93 UNSIGNED_TYPE(ULongLong, UnsignedLongLongTy)
   96 UNSIGNED_TYPE(UInt128, UnsignedInt128Ty)
  104 SIGNED_TYPE(SChar, SignedCharTy)
  110 SIGNED_TYPE(Short, ShortTy)
  113 SIGNED_TYPE(Int, IntTy)
  116 SIGNED_TYPE(Long, LongTy)
  119 SIGNED_TYPE(LongLong, LongLongTy)
  122 SIGNED_TYPE(Int128, Int128Ty)
  127 SIGNED_TYPE(ShortAccum, ShortAccumTy)
  130 SIGNED_TYPE(Accum, AccumTy)
  133 SIGNED_TYPE(LongAccum, LongAccumTy)
  136 UNSIGNED_TYPE(UShortAccum, UnsignedShortAccumTy)
  139 UNSIGNED_TYPE(UAccum, UnsignedAccumTy)
  142 UNSIGNED_TYPE(ULongAccum, UnsignedLongAccumTy)
  145 SIGNED_TYPE(ShortFract, ShortFractTy)
  148 SIGNED_TYPE(Fract, FractTy)
  151 SIGNED_TYPE(LongFract, LongFractTy)
  154 UNSIGNED_TYPE(UShortFract, UnsignedShortFractTy)
  157 UNSIGNED_TYPE(UFract, UnsignedFractTy)
  160 UNSIGNED_TYPE(ULongFract, UnsignedLongFractTy)
  163 SIGNED_TYPE(SatShortAccum, SatShortAccumTy)
  166 SIGNED_TYPE(SatAccum, SatAccumTy)
  169 SIGNED_TYPE(SatLongAccum, SatLongAccumTy)
  172 UNSIGNED_TYPE(SatUShortAccum, SatUnsignedShortAccumTy)
  175 UNSIGNED_TYPE(SatUAccum, SatUnsignedAccumTy)
  178 UNSIGNED_TYPE(SatULongAccum, SatUnsignedLongAccumTy)
  181 SIGNED_TYPE(SatShortFract, SatShortFractTy)
  184 SIGNED_TYPE(SatFract, SatFractTy)
  187 SIGNED_TYPE(SatLongFract, SatLongFractTy)
  190 UNSIGNED_TYPE(SatUShortFract, SatUnsignedShortFractTy)
  193 UNSIGNED_TYPE(SatUFract, SatUnsignedFractTy)
  196 UNSIGNED_TYPE(SatULongFract, SatUnsignedLongFractTy)
  201 FLOATING_TYPE(Half, HalfTy)
  204 FLOATING_TYPE(Float, FloatTy)
  207 FLOATING_TYPE(Double, DoubleTy)
  210 FLOATING_TYPE(LongDouble, LongDoubleTy)
  213 FLOATING_TYPE(Float16, HalfTy)
  216 FLOATING_TYPE(Float128, Float128Ty)
  221 BUILTIN_TYPE(NullPtr, NullPtrTy)
  227 BUILTIN_TYPE(ObjCId, ObjCBuiltinIdTy)
  233 BUILTIN_TYPE(ObjCClass, ObjCBuiltinClassTy)
  237 BUILTIN_TYPE(ObjCSel, ObjCBuiltinSelTy)
  240 BUILTIN_TYPE(OCLSampler, OCLSamplerTy)
  243 BUILTIN_TYPE(OCLEvent, OCLEventTy)
  246 BUILTIN_TYPE(OCLClkEvent, OCLClkEventTy)
  249 BUILTIN_TYPE(OCLQueue, OCLQueueTy)
  252 BUILTIN_TYPE(OCLReserveID, OCLReserveIDTy)
  258 BUILTIN_TYPE(Dependent, DependentTy)
  273 PLACEHOLDER_TYPE(Overload, OverloadTy)
  280 PLACEHOLDER_TYPE(BoundMember, BoundMemberTy)
  298 PLACEHOLDER_TYPE(PseudoObject, PseudoObjectTy)
  304 PLACEHOLDER_TYPE(UnknownAny, UnknownAnyTy)
  306 PLACEHOLDER_TYPE(BuiltinFn, BuiltinFnTy)
  311 PLACEHOLDER_TYPE(ARCUnbridgedCast, ARCUnbridgedCastTy)
  314 PLACEHOLDER_TYPE(OMPArraySection, OMPArraySectionTy)
tools/clang/lib/AST/ASTImporter.cpp
  147       return Importer.importInto(To, From);
  153       auto ToOrErr = Importer.Import(From);
  163       auto ToOrErr = Importer.Import(From);
  177       return Importer.Import(From);
  258       if (Importer.getImportDeclErrorIfAny(FromD)) {
  262       ToD = cast_or_null<ToDeclT>(Importer.GetAlreadyImportedOrNull(FromD));
  267       Importer.RegisterImportedDecl(FromD, ToD);
  296         return Importer.MapImported(D, const_cast<FunctionDecl *>(Definition));
  386              (IDK == IDK_Default && !Importer.isMinimalImport());
  726       Importer.getToContext(),
  804         llvm::makeArrayRef(ToPack).copy(Importer.getToContext()));
  857     return DeclGroupRef::Create(Importer.getToContext(), nullptr, 0);
  867   return DeclGroupRef::Create(Importer.getToContext(),
  876     IdentifierInfo *ToFieldName = Importer.Import(D.getFieldName());
  939   if (Importer.GetFromTU(Found) != From->getTranslationUnitDecl())
  952     return Importer.GetFromTU(Found) == From->getTranslationUnitDecl();
  965   Importer.FromDiag(SourceLocation(), diag::err_unsupported_ast_node)
  975   return Importer.getToContext().getAtomicType(*UnderlyingTypeOrErr);
 1007     if (Importer.getToContext().getLangOpts().CharIsSigned)
 1008       return Importer.getToContext().UnsignedCharTy;
 1010     return Importer.getToContext().CharTy;
 1016     if (!Importer.getToContext().getLangOpts().CharIsSigned)
 1017       return Importer.getToContext().SignedCharTy;
 1019     return Importer.getToContext().CharTy;
 1025     return Importer.getToContext().WCharTy;
 1036   return Importer.getToContext().getDecayedType(*ToOriginalTypeOrErr);
 1044   return Importer.getToContext().getComplexType(*ToElementTypeOrErr);
 1052   return Importer.getToContext().getPointerType(*ToPointeeTypeOrErr);
 1061   return Importer.getToContext().getBlockPointerType(*ToPointeeTypeOrErr);
 1071   return Importer.getToContext().getLValueReferenceType(*ToPointeeTypeOrErr);
 1081   return Importer.getToContext().getRValueReferenceType(*ToPointeeTypeOrErr);
 1095   return Importer.getToContext().getMemberPointerType(
 1108   return Importer.getToContext().getConstantArrayType(
 1119   return Importer.getToContext().getIncompleteArrayType(*ToElementTypeOrErr,
 1135   return Importer.getToContext().getVariableArrayType(
 1153   return Importer.getToContext().getDependentSizedArrayType(
 1163   return Importer.getToContext().getVectorType(*ToElementTypeOrErr,
 1173   return Importer.getToContext().getExtVectorType(*ToElementTypeOrErr,
 1185   return Importer.getToContext().getFunctionNoProtoType(*ToReturnTypeOrErr,
 1235   return Importer.getToContext().getFunctionType(
 1248   return Importer.getToContext().getTypeDeclType(
 1257   return Importer.getToContext().getParenType(*ToInnerTypeOrErr);
 1265   return Importer.getToContext().getTypeDeclType(*ToDeclOrErr);
 1273   return Importer.getToContext().getTypeOfExprType(*ToExprOrErr);
 1281   return Importer.getToContext().getTypeOfType(*ToUnderlyingTypeOrErr);
 1294   return Importer.getToContext().getDecltypeType(
 1308   return Importer.getToContext().getUnaryTransformType(
 1318   return Importer.getToContext().getAutoType(*ToDeducedTypeOrErr,
 1341   return QualType(new (Importer.getToContext(), TypeAlignment)
 1350   return Importer.getToContext().getTagDeclType(*ToDeclOrErr);
 1358   return Importer.getToContext().getTagDeclType(*ToDeclOrErr);
 1369   return Importer.getToContext().getAttributedType(T->getAttrKind(),
 1379   return Importer.getToContext().getTemplateTypeParmType(
 1395   return Importer.getToContext().getSubstTemplateTypeParmType(
 1413       = Importer.getFromContext().getCanonicalType(QualType(T, 0));
 1419   return Importer.getToContext().getTemplateSpecializationType(*ToTemplateOrErr,
 1438   return Importer.getToContext().getElaboratedType(T->getKeyword(),
 1450   return Importer.getToContext().getPackExpansionType(*ToPatternOrErr,
 1460   IdentifierInfo *ToName = Importer.Import(T->getIdentifier());
 1468   return Importer.getToContext().getDependentTemplateSpecializationType(
 1478   IdentifierInfo *Name = Importer.Import(T->getIdentifier());
 1488   return Importer.getToContext().getDependentNameType(T->getKeyword(),
 1499   return Importer.getToContext().getObjCInterfaceType(*ToDeclOrErr);
 1524   return Importer.getToContext().getObjCObjectType(*ToBaseTypeOrErr, TypeArgs,
 1535   return Importer.getToContext().getObjCObjectPointerType(*ToPointeeTypeOrErr);
 1561         Importer.FromDiag(D->getLocation(), diag::err_unsupported_ast_node)
 1580   ToD = cast_or_null<NamedDecl>(Importer.GetAlreadyImportedOrNull(D));
 1663   if (Importer.isMinimalImport() && !ForceImport) {
 1664     auto ToDCOrErr = Importer.ImportContext(FromDC);
 1718   auto ToDCOrErr = Importer.ImportContext(FromDC);
 1730       Decl *ToD = Importer.GetAlreadyImportedOrNull(D);
 1749   auto ToDCOrErr = Importer.ImportContext(FromD->getDeclContext());
 1755     auto ToLexicalDCOrErr = Importer.ImportContext(
 1829   if (Error Err = setTypedefNameForAnonDecl(From, To, Importer))
 1875           new (Importer.getToContext()) CXXBaseSpecifier(
 1927   if (Error Err = setTypedefNameForAnonDecl(From, To, Importer))
 1931       import(Importer.getFromContext().getTypeDeclType(From));
 1990       Importer.getFromContext(), Importer.getToContext(),
 1990       Importer.getFromContext(), Importer.getToContext(),
 1991       Importer.getNonEquivalentDecls(), getStructuralEquivalenceKind(Importer),
 1991       Importer.getNonEquivalentDecls(), getStructuralEquivalenceKind(Importer),
 2000   Decl *ToOrigin = Importer.GetOriginalDecl(ToRecord);
 2007   StructuralEquivalenceContext Ctx(Importer.getFromContext(),
 2009                                    Importer.getNonEquivalentDecls(),
 2010                                    getStructuralEquivalenceKind(Importer),
 2018       Importer.getFromContext(), Importer.getToContext(),
 2018       Importer.getFromContext(), Importer.getToContext(),
 2019       Importer.getNonEquivalentDecls(), getStructuralEquivalenceKind(Importer),
 2019       Importer.getNonEquivalentDecls(), getStructuralEquivalenceKind(Importer),
 2027   if (Decl *ToOrigin = Importer.GetOriginalDecl(ToEnum))
 2032       Importer.getFromContext(), Importer.getToContext(),
 2032       Importer.getFromContext(), Importer.getToContext(),
 2033       Importer.getNonEquivalentDecls(), getStructuralEquivalenceKind(Importer));
 2033       Importer.getNonEquivalentDecls(), getStructuralEquivalenceKind(Importer));
 2040       Importer.getFromContext(), Importer.getToContext(),
 2040       Importer.getFromContext(), Importer.getToContext(),
 2041       Importer.getNonEquivalentDecls(), getStructuralEquivalenceKind(Importer),
 2041       Importer.getNonEquivalentDecls(), getStructuralEquivalenceKind(Importer),
 2048       Importer.getFromContext(), Importer.getToContext(),
 2048       Importer.getFromContext(), Importer.getToContext(),
 2049       Importer.getNonEquivalentDecls(), getStructuralEquivalenceKind(Importer),
 2049       Importer.getNonEquivalentDecls(), getStructuralEquivalenceKind(Importer),
 2066   StructuralEquivalenceContext Ctx(Importer.getFromContext(),
 2067                                    Importer.getToContext(),
 2068                                    Importer.getNonEquivalentDecls(),
 2069                                    getStructuralEquivalenceKind(Importer));
 2075   StructuralEquivalenceContext Ctx(Importer.getFromContext(),
 2076                                    Importer.getToContext(),
 2077                                    Importer.getNonEquivalentDecls(),
 2078                                    getStructuralEquivalenceKind(Importer));
 2083   Importer.FromDiag(D->getLocation(), diag::err_unsupported_ast_node)
 2089   Importer.FromDiag(D->getLocation(), diag::err_unsupported_ast_node)
 2106   if (GetImportedOrCreateDecl(ToD, D, Importer.getToContext(), DC, *LocOrErr))
 2116     Importer.getToContext().getTranslationUnitDecl();
 2118   Importer.MapImported(D, ToD);
 2132   auto DCOrErr = Importer.ImportContext(D->getDeclContext());
 2138   if (GetImportedOrCreateDecl(ToD, D, Importer.getToContext(), D->getAccess(),
 2151   auto DCOrErr = Importer.ImportContext(D->getDeclContext());
 2168       ToD, D, Importer.getToContext(), DC, ToLocation, ToAssertExpr, ToMessage,
 2199     auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 2214       ExpectedName NameOrErr = Importer.HandleNameConflict(
 2232             ToNamespace, D, Importer.getToContext(), DC, D->isInline(),
 2248   Importer.MapImported(D, ToNamespace);
 2280   IdentifierInfo *ToIdentifier = Importer.Import(D->getIdentifier());
 2284       ToD, D, Importer.getToContext(), DC, ToNamespaceLoc, ToAliasLoc,
 2315     auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 2325         if (Importer.IsStructurallyEquivalent(FromUT, FoundUT)) {
 2329             return Importer.MapImported(D, FoundTypedef);
 2339       ExpectedName NameOrErr = Importer.HandleNameConflict(
 2362         ToTypedef, D, Importer.getToContext(), DC, ToBeginLoc, Loc,
 2366       ToTypedef, D, Importer.getToContext(), DC, ToBeginLoc, Loc,
 2407     auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 2412         return Importer.MapImported(D, FoundAlias);
 2417       ExpectedName NameOrErr = Importer.HandleNameConflict(
 2434   if (GetImportedOrCreateDecl(ToAlias, D, Importer.getToContext(), DC, Loc,
 2464     if (GetImportedOrCreateDecl(ToLabel, D, Importer.getToContext(), DC, Loc,
 2469     if (GetImportedOrCreateDecl(ToLabel, D, Importer.getToContext(), DC, Loc,
 2504   } else if (Importer.getToContext().getLangOpts().CPlusPlus)
 2511         Importer.findDeclsInToCtx(DC, SearchName);
 2525           return Importer.MapImported(D, FoundEnum);
 2531       ExpectedName NameOrErr = Importer.HandleNameConflict(
 2553           D2, D, Importer.getToContext(), DC, ToBeginLoc,
 2599   } else if (Importer.getToContext().getLangOpts().CPlusPlus)
 2607         Importer.findDeclsInToCtx(DC, SearchName);
 2647             Importer.MapImported(D, FoundDef);
 2652               if (!Importer.isMinimalImport())
 2667       ExpectedName NameOrErr = Importer.HandleNameConflict(
 2690               D2CXX, CXXRecordDecl::CreateLambda, D, Importer.getToContext(),
 2704               D2CXX, D, Importer.getToContext(), D->getTagKind(), DC,
 2708       Importer.getToContext().getTypeDeclType(
 2711       if (GetImportedOrCreateDecl(D2CXX, D, Importer.getToContext(),
 2757           Importer.getToContext().getInjectedClassNameType(
 2763           Importer.getToContext().getTypeDeclType(Injected, D2CXX);
 2786     if (GetImportedOrCreateDecl(D2, D, Importer.getToContext(),
 2825     auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 2832           return Importer.MapImported(D, FoundEnumConstant);
 2838       ExpectedName NameOrErr = Importer.HandleNameConflict(
 2857           ToEnumerator, D, Importer.getToContext(), cast<EnumDecl>(DC), Loc,
 2879   ToD->setTemplateParameterListsInfo(Importer.ToContext, ToTPLists);
 2915           Importer.getToContext(), std::get<1>(*FunctionAndArgsOrErr));
 2960     ToFD->setDependentTemplateSpecialization(Importer.getToContext(),
 3041     auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 3060         if (Importer.getToContext().getLangOpts().CPlusPlus)
 3064         Importer.ToDiag(Loc, diag::warn_odr_function_type_inconsistent)
 3066         Importer.ToDiag(FoundFunction->getLocation(), diag::note_odr_value_here)
 3073       ExpectedName NameOrErr = Importer.HandleNameConflict(
 3099             Importer.MapImported(DescribedD,
 3102           return Importer.MapImported(D, FoundByLookup);
 3129       FromTy = Importer.getFromContext().getFunctionType(
 3166             ToFunction, D, Importer.getToContext(), cast<CXXRecordDecl>(DC),
 3187         ToFunction, D, Importer.getToContext(), cast<CXXRecordDecl>(DC),
 3205             ToFunction, D, Importer.getToContext(), cast<CXXRecordDecl>(DC),
 3213             ToFunction, D, Importer.getToContext(), cast<CXXRecordDecl>(DC),
 3220             ToFunction, D, Importer.getToContext(), DC, ToInnerLocStart,
 3290           new (Importer.getToContext()) CXXCtorInitializer *[NumInitializers];
 3372   auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 3381       if (Importer.IsStructurallyEquivalent(D->getType(),
 3383         Importer.MapImported(D, FoundField);
 3407       Importer.ToDiag(Loc, diag::warn_odr_field_type_inconsistent)
 3409       Importer.ToDiag(FoundField->getLocation(), diag::note_odr_value_here)
 3430   if (GetImportedOrCreateDecl(ToField, D, Importer.getToContext(), DC,
 3457   auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 3466       if (Importer.IsStructurallyEquivalent(D->getType(),
 3469         Importer.MapImported(D, FoundField);
 3478       Importer.ToDiag(Loc, diag::warn_odr_field_type_inconsistent)
 3480       Importer.ToDiag(FoundField->getLocation(), diag::note_odr_value_here)
 3493     new (Importer.getToContext()) NamedDecl*[D->getChainingSize()];
 3504   if (GetImportedOrCreateDecl(ToIndirectField, D, Importer.getToContext(), DC,
 3530         return Importer.MapImported(D, ImportedFriend);
 3533       if (Importer.IsStructurallyEquivalent(
 3536         return Importer.MapImported(D, ImportedFriend);
 3577   if (GetImportedOrCreateDecl(FrD, D, Importer.getToContext(), DC,
 3600   auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 3603       if (Importer.IsStructurallyEquivalent(D->getType(),
 3605         Importer.MapImported(D, FoundIvar);
 3609       Importer.ToDiag(Loc, diag::warn_odr_ivar_type_inconsistent)
 3611       Importer.ToDiag(FoundIvar->getLocation(), diag::note_odr_value_here)
 3630           ToIvar, D, Importer.getToContext(), cast<ObjCContainerDecl>(DC),
 3670     auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 3678         if (Importer.IsStructurallyEquivalent(D->getType(),
 3687             return Importer.MapImported(D, FoundDef);
 3694             return Importer.MapImported(D, const_cast<VarDecl*>(FoundDInit));
 3701           = Importer.getToContext().getAsArrayType(FoundVar->getType());
 3703           = Importer.getToContext().getAsArrayType(D->getType());
 3722         Importer.ToDiag(Loc, diag::warn_odr_variable_type_inconsistent)
 3724         Importer.ToDiag(FoundVar->getLocation(), diag::note_odr_value_here)
 3731       ExpectedName NameOrErr = Importer.HandleNameConflict(
 3753   if (GetImportedOrCreateDecl(ToVar, D, Importer.getToContext(), DC,
 3793   DeclContext *DC = Importer.getToContext().getTranslationUnitDecl();
 3805   if (GetImportedOrCreateDecl(ToParm, D, Importer.getToContext(), DC,
 3837   DeclContext *DC = Importer.getToContext().getTranslationUnitDecl();
 3853   if (GetImportedOrCreateDecl(ToParm, D, Importer.getToContext(), DC,
 3888   auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 3895       if (!Importer.IsStructurallyEquivalent(D->getReturnType(),
 3897         Importer.ToDiag(Loc, diag::warn_odr_objc_method_result_type_inconsistent)
 3900         Importer.ToDiag(FoundMethod->getLocation(),
 3909         Importer.ToDiag(Loc, diag::warn_odr_objc_method_num_params_inconsistent)
 3912         Importer.ToDiag(FoundMethod->getLocation(),
 3923         if (!Importer.IsStructurallyEquivalent((*P)->getType(),
 3925           Importer.FromDiag((*P)->getLocation(),
 3929           Importer.ToDiag((*FoundP)->getLocation(), diag::note_odr_value_here)
 3939         Importer.ToDiag(Loc, diag::warn_odr_objc_method_variadic_inconsistent)
 3941         Importer.ToDiag(FoundMethod->getLocation(),
 3949       return Importer.MapImported(D, FoundMethod);
 3964           ToMethod, D, Importer.getToContext(), Loc,
 3995   ToMethod->setMethodParams(Importer.getToContext(), ToParams, ToSelLocs);
 4024           Result, D, Importer.getToContext(), DC, D->getVariance(),
 4065     if (GetImportedOrCreateDecl(ToCategory, D, Importer.getToContext(), DC,
 4105                                 ProtocolLocs.data(), Importer.getToContext());
 4108     Importer.MapImported(D, ToCategory);
 4162                       ProtocolLocs.data(), Importer.getToContext());
 4179       return Importer.MapImported(D, *ImportedDefOrErr);
 4195   auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 4210     if (GetImportedOrCreateDecl(ToProto, D, Importer.getToContext(), DC,
 4219   Importer.MapImported(D, ToProto);
 4244   if (GetImportedOrCreateDecl(ToLinkageSpec, D, Importer.getToContext(), DC,
 4285   if (GetImportedOrCreateDecl(ToUsing, D, Importer.getToContext(), DC,
 4294       Importer.getFromContext().getInstantiatedFromUsingDecl(D)) {
 4296       Importer.getToContext().setInstantiatedFromUsingDecl(
 4332   if (GetImportedOrCreateDecl(ToShadow, D, Importer.getToContext(), DC, Loc,
 4340       Importer.getFromContext().getInstantiatedFromUsingShadowDecl(D)) {
 4342       Importer.getToContext().setInstantiatedFromUsingShadowDecl(
 4365   auto ToComAncestorOrErr = Importer.ImportContext(D->getCommonAncestor());
 4383   if (GetImportedOrCreateDecl(ToUsingDir, D, Importer.getToContext(), DC,
 4422   if (GetImportedOrCreateDecl(ToUsingValue, D, Importer.getToContext(), DC,
 4455   if (GetImportedOrCreateDecl(ToUsing, D, Importer.getToContext(), DC,
 4483       Importer.ToDiag(To->getLocation(),
 4487         Importer.ToDiag(To->getSuperClassLoc(), diag::note_odr_objc_superclass)
 4490         Importer.ToDiag(To->getLocation(),
 4493         Importer.FromDiag(From->getSuperClassLoc(),
 4497         Importer.FromDiag(From->getLocation(),
 4542                       ProtocolLocs.data(), Importer.getToContext());
 4590   return ObjCTypeParamList::create(Importer.getToContext(),
 4603       return Importer.MapImported(D, *ImportedDefOrErr);
 4620   auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 4637             ToIface, D, Importer.getToContext(), DC,
 4645   Importer.MapImported(D, ToIface);
 4681             ToImpl, D, Importer.getToContext(), DC,
 4682             Importer.Import(D->getIdentifier()), Category->getClassInterface(),
 4691   Importer.MapImported(D, ToImpl);
 4729     if (GetImportedOrCreateDecl(Impl, D, Importer.getToContext(),
 4742     Importer.MapImported(D, Iface->getImplementation());
 4744     Importer.MapImported(D, Iface->getImplementation());
 4752       Importer.ToDiag(Impl->getLocation(),
 4758         Importer.ToDiag(Impl->getLocation(),
 4762         Importer.ToDiag(Impl->getLocation(),
 4765         Importer.FromDiag(D->getLocation(),
 4769         Importer.FromDiag(D->getLocation(),
 4795   auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 4799       if (!Importer.IsStructurallyEquivalent(D->getType(),
 4801         Importer.ToDiag(Loc, diag::warn_odr_objc_property_type_inconsistent)
 4803         Importer.ToDiag(FoundProp->getLocation(), diag::note_odr_value_here)
 4812       Importer.MapImported(D, FoundProp);
 4829           ToProperty, D, Importer.getToContext(), DC, Loc,
 4894     if (GetImportedOrCreateDecl(ToImpl, D, Importer.getToContext(), DC,
 4907       Importer.ToDiag(ToImpl->getLocation(),
 4912       Importer.FromDiag(D->getLocation(),
 4923       Importer.ToDiag(ToImpl->getPropertyIvarDeclLoc(),
 4928       Importer.FromDiag(D->getPropertyIvarDeclLoc(),
 4936     Importer.MapImported(D, ToImpl);
 4960       ToD, D, Importer.getToContext(),
 4961       Importer.getToContext().getTranslationUnitDecl(),
 4963       D->getDepth(), D->getIndex(), Importer.Import(D->getIdentifier()),
 4987       ToD, D, Importer.getToContext(),
 4988       Importer.getToContext().getTranslationUnitDecl(),
 5016       ToD, D, Importer.getToContext(),
 5017       Importer.getToContext().getTranslationUnitDecl(), *LocationOrErr,
 5053     auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 5067             return Importer.MapImported(D, TemplateWithDef);
 5079       ExpectedName NameOrErr = Importer.HandleNameConflict(
 5102   if (GetImportedOrCreateDecl(D2, D, Importer.getToContext(), DC, Loc, Name,
 5182         Importer.MapImported(D, PrevDecl->getDefinition());
 5240             D2, D, Importer.getToContext(), D->getTagKind(), DC,
 5256             D2, D, Importer.getToContext(), D->getTagKind(), DC,
 5327       return Importer.MapImported(D, *ImportedDefOrErr);
 5346   auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 5355         Importer.MapImported(D->getTemplatedDecl(),
 5357         return Importer.MapImported(D, FoundTemplate);
 5364     ExpectedName NameOrErr = Importer.HandleNameConflict(
 5392   if (GetImportedOrCreateDecl(ToVarTD, D, Importer.getToContext(), DC, Loc,
 5418       return Importer.MapImported(D, *ImportedDefOrErr);
 5463         return Importer.MapImported(D, FoundDef);
 5497       if (GetImportedOrCreateDecl(ToPartial, D, Importer.getToContext(), DC,
 5515       if (GetImportedOrCreateDecl(D2, D, Importer.getToContext(), DC,
 5577     auto FoundDecls = Importer.findDeclsInToCtx(DC, Name);
 5589             return Importer.MapImported(D, TemplateWithDef);
 5608   if (GetImportedOrCreateDecl(ToFunc, D, Importer.getToContext(), DC, Loc, Name,
 5640   Importer.FromDiag(S->getBeginLoc(), diag::err_unsupported_ast_node)
 5647   if (Importer.returnWithErrorInTest())
 5651     IdentifierInfo *ToII = Importer.Import(S->getOutputIdentifier(I));
 5658     IdentifierInfo *ToII = Importer.Import(S->getInputIdentifier(I));
 5711   return new (Importer.getToContext()) GCCAsmStmt(
 5712       Importer.getToContext(),
 5737   return new (Importer.getToContext()) DeclStmt(ToDG, ToBeginLoc, ToEndLoc);
 5744   return new (Importer.getToContext()) NullStmt(
 5763       Importer.getToContext(), ToStmts,
 5780   auto *ToStmt = CaseStmt::Create(Importer.getToContext(), ToLHS, ToRHS,
 5796   return new (Importer.getToContext()) DefaultStmt(
 5810   return new (Importer.getToContext()) LabelStmt(
 5827       Importer.getToContext(), *ToAttrLocOrErr, ToAttrs, *ToSubStmtOrErr);
 5845   return IfStmt::Create(Importer.getToContext(), ToIfLoc, S->isConstexpr(),
 5863   auto *ToStmt = SwitchStmt::Create(Importer.getToContext(), ToInit,
 5897   return WhileStmt::Create(Importer.getToContext(), ToConditionVariable, ToCond,
 5913   return new (Importer.getToContext()) DoStmt(
 5933   return new (Importer.getToContext()) ForStmt(
 5934       Importer.getToContext(),
 5948   return new (Importer.getToContext()) GotoStmt(
 5961   return new (Importer.getToContext()) IndirectGotoStmt(
 5969   return new (Importer.getToContext()) ContinueStmt(*ToContinueLocOrErr);
 5976   return new (Importer.getToContext()) BreakStmt(*ToBreakLocOrErr);
 5990   return ReturnStmt::Create(Importer.getToContext(), ToReturnLoc, ToRetValue,
 6005   return new (Importer.getToContext()) CXXCatchStmt (
 6028       Importer.getToContext(), *ToTryLocOrErr,*ToTryBlockOrErr, ToHandlers);
 6051   return new (Importer.getToContext()) CXXForRangeStmt(
 6069   return new (Importer.getToContext()) ObjCForCollectionStmt(ToElement,
 6088   return new (Importer.getToContext()) ObjCAtCatchStmt (
 6099   return new (Importer.getToContext()) ObjCAtFinallyStmt(*ToAtFinallyLocOrErr,
 6122   return ObjCAtTryStmt::Create(Importer.getToContext(),
 6140   return new (Importer.getToContext()) ObjCAtSynchronizedStmt(
 6151   return new (Importer.getToContext()) ObjCAtThrowStmt(
 6163   return new (Importer.getToContext()) ObjCAutoreleasePoolStmt(*ToAtLocOrErr,
 6171   Importer.FromDiag(E->getBeginLoc(), diag::err_unsupported_ast_node)
 6190   return new (Importer.getToContext()) VAArgExpr(
 6218   return new (Importer.getToContext())
 6232   return new (Importer.getToContext()) GNUNullExpr(*TypeOrErr, *BeginLocOrErr);
 6246   return PredefinedExpr::Create(Importer.getToContext(), ToBeginLoc, ToType,
 6282       Importer.getToContext(), ToQualifierLoc, ToTemplateKeywordLoc, ToDecl,
 6295   return new (Importer.getToContext()) ImplicitValueInitExpr(*TypeOrErr);
 6321         Importer.getToContext(), ToDesignators,
 6336   return new (Importer.getToContext()) CXXNullPtrLiteralExpr(
 6350       Importer.getToContext(), E->getValue(), *ToTypeOrErr, *ToLocationOrErr);
 6364       Importer.getToContext(), E->getValue(), E->isExact(),
 6377   return new (Importer.getToContext()) ImaginaryLiteral(
 6390   return new (Importer.getToContext()) CharacterLiteral(
 6405       Importer.getToContext(), E->getBytes(), E->getKind(), E->isPascal(),
 6422   return new (Importer.getToContext()) CompoundLiteralExpr(
 6443   return new (Importer.getToContext()) AtomicExpr(
 6458   return new (Importer.getToContext()) AddrLabelExpr(
 6475     return ConstantExpr::Create(Importer.getToContext(), ToSubExpr,
 6477   return ConstantExpr::Create(Importer.getToContext(), ToSubExpr);
 6489   return new (Importer.getToContext())
 6506   return ParenListExpr::Create(Importer.getToContext(), *ToLParenLocOrErr,
 6521   return new (Importer.getToContext()) StmtExpr(
 6536   return new (Importer.getToContext()) UnaryOperator(
 6557     return new (Importer.getToContext()) UnaryExprOrTypeTraitExpr(
 6566   return new (Importer.getToContext()) UnaryExprOrTypeTraitExpr(
 6581   return new (Importer.getToContext()) BinaryOperator(
 6598   return new (Importer.getToContext()) ConditionalOperator(
 6619   return new (Importer.getToContext()) BinaryConditionalOperator(
 6640   return new (Importer.getToContext()) ArrayTypeTraitExpr(
 6656   return new (Importer.getToContext()) ExpressionTraitExpr(
 6672   return new (Importer.getToContext()) OpaqueValueExpr(
 6687   return new (Importer.getToContext()) ArraySubscriptExpr(
 6706   return new (Importer.getToContext()) CompoundAssignOperator(
 6738       Importer.getToContext(), *ToTypeOrErr, E->getCastKind(), *ToSubExprOrErr,
 6768         Importer.getToContext(), ToType, E->getValueKind(), E->getCastKind(),
 6782         Importer.getToContext(), ToType, E->getValueKind(), ToTypeInfoAsWritten,
 6795     return new (Importer.getToContext()) ObjCBridgedCastExpr(
 6838       IdentifierInfo *ToII = Importer.Import(FromNode.getFieldName());
 6865       Importer.getToContext(), ToType, ToOperatorLoc, ToTypeSourceInfo, ToNodes,
 6886   return new (Importer.getToContext()) CXXNoexceptExpr(
 6900   return new (Importer.getToContext()) CXXThrowExpr(
 6913   auto UsedContextOrErr = Importer.ImportContext(E->getUsedContext());
 6925     Optional<ParmVarDecl *> FromParam = Importer.getImportedFromDecl(ToParam);
 6932   return CXXDefaultArgExpr::Create(Importer.getToContext(), *ToUsedLocOrErr,
 6948   return new (Importer.getToContext()) CXXScalarValueInitExpr(
 6962   ASTContext &ToCtx = Importer.getToContext();
 6986       Importer.getToContext(), ToConstructor, ToType, ToTypeSourceInfo, ToArgs,
 7004   auto *ToMTE =  new (Importer.getToContext()) MaterializeTemporaryExpr(
 7023   return new (Importer.getToContext()) PackExpansionExpr(
 7051       Importer.getToContext(), ToOperatorLoc, ToPack, ToPackLoc, ToRParenLoc,
 7081       Importer.getToContext(), E->isGlobalNew(), ToOperatorNew,
 7100   return new (Importer.getToContext()) CXXDeleteExpr(
 7124       Importer.getToContext(), ToType, ToLocation, ToConstructor,
 7141       Importer.getToContext(), *ToSubExprOrErr, E->cleanupsHaveSideEffects(),
 7160   return CXXMemberCallExpr::Create(Importer.getToContext(), ToCallee, ToArgs,
 7173   return new (Importer.getToContext()) CXXThisExpr(
 7186   return new (Importer.getToContext()) CXXBoolLiteralExpr(
 7230   return MemberExpr::Create(Importer.getToContext(), ToBase, E->isArrow(),
 7255     IdentifierInfo *ToII = Importer.Import(FromII);
 7267   return new (Importer.getToContext()) CXXPseudoDestructorExpr(
 7268       Importer.getToContext(), ToBase, E->isArrow(), ToOperatorLoc,
 7316       Importer.getToContext(), ToBase, ToType, E->isArrow(), ToOperatorLoc,
 7350       Importer.getToContext(), ToQualifierLoc, ToTemplateKeywordLoc,
 7371       Importer.getToContext(), ToTypeSourceInfo, ToLParenLoc,
 7413         Importer.getToContext(), *ToNamingClassOrErr, *ToQualifierLocOrErr,
 7419       Importer.getToContext(), *ToNamingClassOrErr, *ToQualifierLocOrErr,
 7470       Importer.getToContext(), E->hasUnresolvedUsing(), ToBase, ToType,
 7492         Importer.getToContext(), OCE->getOperator(), ToCallee, ToArgs, ToType,
 7497   return CallExpr::Create(Importer.getToContext(), ToCallee, ToArgs, ToType,
 7536       Importer.getToContext(), ToClass, ToIntroducerRange,
 7556   ASTContext &ToCtx = Importer.getToContext();
 7599   return new (Importer.getToContext()) CXXStdInitializerListExpr(
 7614   return new (Importer.getToContext()) CXXInheritedCtorInitExpr(
 7628   return new (Importer.getToContext()) ArrayInitLoopExpr(
 7636   return new (Importer.getToContext()) ArrayInitIndexExpr(*ToTypeOrErr);
 7648   auto UsedContextOrErr = Importer.ImportContext(E->getUsedContext());
 7653       Importer.getToContext(), *ToBeginLocOrErr, *ToFieldOrErr, *UsedContextOrErr);
 7680         Importer.getToContext(), ToType, VK, CK, ToSubExpr, &(*ToBasePathOrErr),
 7684         Importer.getToContext(), ToType, VK, CK, ToSubExpr, &(*ToBasePathOrErr),
 7688         Importer.getToContext(), ToType, VK, CK, ToSubExpr, &(*ToBasePathOrErr),
 7692         Importer.getToContext(), ToType, VK, ToSubExpr, ToTypeInfoAsWritten,
 7713   return new (Importer.getToContext()) SubstNonTypeTemplateParmExpr(
 7736       Importer.getToContext(), ToType, ToBeginLoc, E->getTrait(), ToArgs,
 7751       return new (Importer.getToContext()) CXXTypeidExpr(
 7761   return new (Importer.getToContext()) CXXTypeidExpr(