Lines Matching refs:SemaRef
39 SemaRef.setFunctionHasBranchProtectedScope(); in ActOnObjCForCollectionStmt()
70 TemplateDeductionResult Result = SemaRef.DeduceAutoType( in ActOnObjCForCollectionStmt()
74 SemaRef.DiagnoseAutoDeductionFailure(D, DeducedInit); in ActOnObjCForCollectionStmt()
82 if (!SemaRef.inTemplateInstantiation()) { in ActOnObjCForCollectionStmt()
111 CollectionExprResult = SemaRef.ActOnFinishFullExpr(CollectionExprResult.get(), in ActOnObjCForCollectionStmt()
126 ExprResult result = SemaRef.CorrectDelayedTyposInExpr(collection); in CheckObjCForCollectionOperand()
136 result = SemaRef.DefaultFunctionArrayLvalueConversion(collection); in CheckObjCForCollectionOperand()
158 ? SemaRef.RequireCompleteType(forLoc, QualType(objectType, 0), in CheckObjCForCollectionOperand()
161 : !SemaRef.isCompleteType(forLoc, QualType(objectType, 0)))) { in CheckObjCForCollectionOperand()
230 sema::FunctionScopeInfo *FSI = SemaRef.getCurFunction(); in ActOnObjCAtTryStmt()
245 ExprResult Result = SemaRef.DefaultLvalueConversion(Throw); in BuildObjCAtThrowStmt()
250 SemaRef.ActOnFinishFullExpr(Result.get(), /*DiscardedValue*/ false); in BuildObjCAtThrowStmt()
288 ExprResult result = SemaRef.DefaultLvalueConversion(operand); in ActOnObjCAtSynchronizedOperand()
299 if (SemaRef.RequireCompleteType(atLoc, type, in ActOnObjCAtSynchronizedOperand()
305 SemaRef.PerformContextuallyConvertToObjCPointer(operand); in ActOnObjCAtSynchronizedOperand()
321 return SemaRef.ActOnFinishFullExpr(operand, /*DiscardedValue*/ false); in ActOnObjCAtSynchronizedOperand()
329 SemaRef.setFunctionHasBranchProtectedScope(); in ActOnObjCAtSynchronizedStmt()
336 SemaRef.setFunctionHasBranchProtectedScope(); in ActOnObjCAutoreleasePoolStmt()
374 return SemaRef.CreateParsedType(Result, ResultTInfo); in actOnObjCProtocolQualifierType()
385 QualType T = SemaRef.GetTypeFromParser(BaseType, &BaseTypeInfo); in actOnObjCTypeArgsAndProtocolQualifiers()
397 QualType TypeArg = SemaRef.GetTypeFromParser(TypeArgs[i], &TypeArgInfo); in actOnObjCTypeArgsAndProtocolQualifiers()
444 return SemaRef.CreateParsedType(Result, ResultTInfo); in actOnObjCTypeArgsAndProtocolQualifiers()
481 return SemaRef.CreateParsedType(Result, ResultTInfo); in actOnObjCTypeArgsAndProtocolQualifiers()
721 applyObjCTypeArgs(SemaRef, Loc, Result, TypeArgs, in BuildObjCObjectType()
748 return SemaRef.CreateParsedType(T, TInfo); in ActOnObjCInstanceType()
1168 if (!findRetainCycleOwner(SemaRef, msg->getInstanceReceiver(), owner)) in checkRetainCycles()
1172 owner.Variable = SemaRef.getCurMethodDecl()->getSelfDecl(); in checkRetainCycles()
1180 if (Expr *capturer = findCapturingExpr(SemaRef, msg->getArg(i), owner)) { in checkRetainCycles()
1184 return diagnoseRetainCycle(SemaRef, capturer, owner); in checkRetainCycles()
1192 if (!findRetainCycleOwner(SemaRef, receiver, owner)) in checkRetainCycles()
1195 if (Expr *capturer = findCapturingExpr(SemaRef, argument, owner)) in checkRetainCycles()
1196 diagnoseRetainCycle(SemaRef, capturer, owner); in checkRetainCycles()
1209 if (Expr *Capturer = findCapturingExpr(SemaRef, Init, Owner)) in checkRetainCycles()
1210 diagnoseRetainCycle(SemaRef, Capturer, Owner); in checkRetainCycles()
1250 SemaRef.checkCall(Method, nullptr, /*ThisArg=*/nullptr, Args, in CheckObjCMethodCall()
1254 SemaRef.CheckTCBEnforcement(lbrac, Method); in CheckObjCMethodCall()
1260 const DeclContext *DC = SemaRef.getCurLexicalContext(); in getCurObjCLexicalContext()
1270 Ident_NSError = SemaRef.PP.getIdentifierInfo("NSError"); in getNSErrorIdent()
1277 IDecl->getLexicalParent() == SemaRef.CurContext && in ActOnObjCContainerStartDefinition()
1279 SemaRef.CurContext = IDecl; in ActOnObjCContainerStartDefinition()
1284 SemaRef.PopDeclContext(); in ActOnObjCContainerFinishDefinition()
1289 assert(ObjCCtx == SemaRef.CurContext && "Mismatch of container contexts"); in ActOnObjCTemporaryExitContainerContext()
1290 SemaRef.OriginalLexicalContext = ObjCCtx; in ActOnObjCTemporaryExitContainerContext()
1296 SemaRef.OriginalLexicalContext = nullptr; in ActOnObjCReenterContainerContext()
1303 Decl *D = SemaRef.LookupSingleName(SemaRef.TUScope, II, IdLoc, in LookupProtocol()
1365 else if (!SemaRef.isObjCPointerConversion(FromPointee, ToPointee, FromPointee, in isObjCWritebackConversion()
1403 if (SemaRef.RequireCompleteType(FromE->getExprLoc(), T, in CheckSubscriptingKind()
1450 std::tie(Ident, Loc) = SemaRef.PP.getPragmaARCCFCodeAuditedInfo(); in AddCFAuditedAttribute()
1549 if (!checkIBOutletCommon(SemaRef, D, AL)) in handleIBOutlet()
1564 if (!checkIBOutletCommon(SemaRef, D, AL)) in handleIBOutletCollection()
1572 PT = SemaRef.getTypeName( in handleIBOutletCollection()
1574 SemaRef.getScopeForContext(D->getDeclContext()->getParent())); in handleIBOutletCollection()
1582 QualType QT = SemaRef.GetTypeFromParser(PT, &QTLoc); in handleIBOutletCollection()
2011 LookupResult Result(SemaRef, DeclarationName(IdentLoc->Ident), in handleNSErrorDomain()
2014 if (!SemaRef.LookupName(Result, SemaRef.TUScope) || in handleNSErrorDomain()
2107 if (!SemaRef.checkStringLiteralArgumentAttr(AL, 0, MetaDataName)) in handleRuntimeName()
2133 if (ASTMutationListener *L = SemaRef.getASTMutationListener()) in handleBoxable()
2230 if (!tryMakeVariablePseudoStrong(SemaRef, VD, /*DiagnoseFailure=*/true)) in handleExternallyRetainedAttr()
2253 tryMakeVariablePseudoStrong(SemaRef, PVD, /*DiagnoseFailure=*/false); in handleExternallyRetainedAttr()
2260 if ((SemaRef.GetFormatStringType(Format) == Sema::FST_NSString) && in GetFormatNSStringIdx()
2261 SemaRef.getFormatStringInfo(Format, false, true, &FSI)) { in GetFormatNSStringIdx()
2299 if (SemaRef.FormatStringHasSArg(FormatString)) { in DiagnoseCStringFormatDirectiveInCFAPI()
2320 SourceLocation EndLoc = SemaRef.getLocForEndOfToken(SourceExpr->getEndLoc()); in adornBoolConversionDiagWithTernaryFixit()
2376 checkCollectionLiteralElement(SemaRef, TargetElementType, in checkArrayLiteral()
2403 checkCollectionLiteralElement(SemaRef, TargetKeyType, Element.Key, 1); in checkDictionaryLiteral()
2404 checkCollectionLiteralElement(SemaRef, TargetObjectType, Element.Value, 2); in checkDictionaryLiteral()