Home
last modified time | relevance | path

Searched refs:TheCall (Results 1 – 11 of 11) sorted by relevance

/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaChecking.cpp188 static bool SemaBuiltinAnnotation(Sema &S, CallExpr *TheCall) { in SemaBuiltinAnnotation() argument
189 if (checkArgCount(S, TheCall, 2)) in SemaBuiltinAnnotation()
193 Expr *ValArg = TheCall->getArg(0); in SemaBuiltinAnnotation()
202 Expr *StrArg = TheCall->getArg(1)->IgnoreParenCasts(); in SemaBuiltinAnnotation()
210 TheCall->setType(Ty); in SemaBuiltinAnnotation()
214 static bool SemaBuiltinMSVCAnnotation(Sema &S, CallExpr *TheCall) { in SemaBuiltinMSVCAnnotation() argument
216 if (TheCall->getNumArgs() < 1) { in SemaBuiltinMSVCAnnotation()
217 S.Diag(TheCall->getEndLoc(), diag::err_typecheck_call_too_few_args_at_least) in SemaBuiltinMSVCAnnotation()
218 << 0 << 1 << TheCall->getNumArgs() in SemaBuiltinMSVCAnnotation()
219 << TheCall->getCallee()->getSourceRange(); in SemaBuiltinMSVCAnnotation()
[all …]
H A DSemaOverload.cpp13668 CallExpr *TheCall = CXXOperatorCallExpr::Create( in CreateOverloadedUnaryOp() local
13672 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, FnDecl)) in CreateOverloadedUnaryOp()
13675 if (CheckFunctionCall(FnDecl, TheCall, in CreateOverloadedUnaryOp()
13678 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FnDecl); in CreateOverloadedUnaryOp()
14042 CXXOperatorCallExpr *TheCall = CXXOperatorCallExpr::Create( in CreateOverloadedBinOp() local
14046 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, in CreateOverloadedBinOp()
14072 isa<CXXMethodDecl>(FnDecl), OpLoc, TheCall->getSourceRange(), in CreateOverloadedBinOp()
14075 ExprResult R = MaybeBindToTemporary(TheCall); in CreateOverloadedBinOp()
14472 CallExpr *TheCall; in CreateOverloadedArraySubscriptExpr() local
14474 TheCall = CXXOperatorCallExpr::Create( in CreateOverloadedArraySubscriptExpr()
[all …]
H A DSemaExprCXX.cpp3803 static bool resolveBuiltinNewDeleteOverload(Sema &S, CallExpr *TheCall, in resolveBuiltinNewDeleteOverload() argument
3810 LookupResult R(S, NewName, TheCall->getBeginLoc(), Sema::LookupOrdinaryName); in resolveBuiltinNewDeleteOverload()
3818 SmallVector<Expr *, 8> Args(TheCall->arguments()); in resolveBuiltinNewDeleteOverload()
3840 SourceRange Range = TheCall->getSourceRange(); in resolveBuiltinNewDeleteOverload()
3893 CallExpr *TheCall = cast<CallExpr>(TheCallResult.get()); in SemaBuiltinOperatorNewDeleteOverloaded() local
3895 Diag(TheCall->getExprLoc(), diag::err_builtin_requires_language) in SemaBuiltinOperatorNewDeleteOverloaded()
3905 if (resolveBuiltinNewDeleteOverload(*this, TheCall, IsDelete, in SemaBuiltinOperatorNewDeleteOverloaded()
3910 DiagnoseUseOfDecl(OperatorNewOrDelete, TheCall->getExprLoc()); in SemaBuiltinOperatorNewDeleteOverloaded()
3911 MarkFunctionReferenced(TheCall->getExprLoc(), OperatorNewOrDelete); in SemaBuiltinOperatorNewDeleteOverloaded()
3913 TheCall->setType(OperatorNewOrDelete->getReturnType()); in SemaBuiltinOperatorNewDeleteOverloaded()
[all …]
H A DSemaExpr.cpp7251 CallExpr *TheCall; in BuildResolvedCallExpr() local
7255 TheCall = CUDAKernelCallExpr::Create(Context, Fn, cast<CallExpr>(Config), in BuildResolvedCallExpr()
7259 TheCall = in BuildResolvedCallExpr()
7267 TheCall->shrinkNumArgs(Args.size()); in BuildResolvedCallExpr()
7272 ExprResult Result = CorrectDelayedTyposInExpr(TheCall); in BuildResolvedCallExpr()
7274 CallExpr *TheOldCall = TheCall; in BuildResolvedCallExpr()
7275 TheCall = dyn_cast<CallExpr>(Result.get()); in BuildResolvedCallExpr()
7276 bool CorrectedTypos = TheCall != TheOldCall; in BuildResolvedCallExpr()
7277 if (!TheCall) return Result; in BuildResolvedCallExpr()
7278 Args = llvm::ArrayRef(TheCall->getArgs(), TheCall->getNumArgs()); in BuildResolvedCallExpr()
[all …]
H A DTreeTransform.h3777 ExprResult TheCall = CallExpr::Create( in RebuildShuffleVectorExpr() local
3783 return SemaRef.SemaBuiltinShuffleVector(cast<CallExpr>(TheCall.get())); in RebuildShuffleVectorExpr()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DMallocOverflowSecurityChecker.cpp53 const CallExpr *TheCall, ASTContext &Context) const;
69 const CallExpr *TheCall, ASTContext &Context) const { in CheckMallocArgument() argument
76 const Expr *e = TheCall->getArg(0); in CheckMallocArgument()
120 MallocOverflowCheck(TheCall, mulop, e, maxVal)); in CheckMallocArgument()
313 if (const CallExpr *TheCall = dyn_cast<CallExpr>(CS->getStmt())) { in checkASTCodeBody() local
315 const FunctionDecl *FD = TheCall->getDirectCallee(); in checkASTCodeBody()
327 if (TheCall->getNumArgs() == 1) in checkASTCodeBody()
328 CheckMallocArgument(PossibleMallocOverflows, TheCall, in checkASTCodeBody()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DCodeExtractor.cpp1092 CallInst *TheCall) { in insertLifetimeMarkersSurroundingCall() argument
1096 Instruction *Term = TheCall->getParent()->getTerminator(); in insertLifetimeMarkersSurroundingCall()
1108 TheCall->getFunction()) && in insertLifetimeMarkersSurroundingCall()
1116 CastInst::CreatePointerCast(Mem, Int8PtrTy, "lt.cast", TheCall); in insertLifetimeMarkersSurroundingCall()
1121 Marker->insertBefore(TheCall); in insertLifetimeMarkersSurroundingCall()
1519 CallInst &TheCall) { in fixupDebugInfoPostExtraction() argument
1630 if (!TheCall.getDebugLoc()) in fixupDebugInfoPostExtraction()
1631 TheCall.setDebugLoc(DILocation::get(Ctx, 0, 0, OldSP)); in fixupDebugInfoPostExtraction()
1795 CallInst *TheCall = in extractCodeRegion() local
1803 oldFunction->getParent(), LifetimesStart.getArrayRef(), {}, TheCall); in extractCodeRegion()
[all …]
H A DInlineFunction.cpp1556 Instruction *TheCall, in HandleByValArgument() argument
1562 Function *Caller = TheCall->getFunction(); in HandleByValArgument()
1580 if (getOrEnforceKnownAlignment(Arg, *ByValAlignment, DL, TheCall, AC) >= in HandleByValArgument()
1655 Instruction *TheCall, bool CalleeHasDebugInfo) { in fixupLineNumbers() argument
1656 const DebugLoc &TheCallDL = TheCall->getDebugLoc(); in fixupLineNumbers()
1856 const CallBase &TheCall, ProfileSummaryInfo *PSI, in updateCallProfile() argument
1861 PSI ? PSI->getProfileCount(TheCall, CallerBFI) : std::nullopt; in updateCallProfile()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DSema.h13422 bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall,
13426 bool CheckPointerCall(NamedDecl *NDecl, CallExpr *TheCall,
13428 bool CheckOtherCall(CallExpr *TheCall, const FunctionProtoType *Proto);
13447 unsigned BuiltinID, CallExpr *TheCall);
13450 CallExpr *TheCall);
13452 void checkFortifiedBuiltinMemoryFunction(FunctionDecl *FD, CallExpr *TheCall);
13454 bool CheckARMBuiltinExclusiveCall(unsigned BuiltinID, CallExpr *TheCall,
13457 CallExpr *TheCall);
13458 bool CheckMVEBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall);
13459 bool CheckSVEBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall);
[all …]
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGExprCXX.cpp1335 const CallExpr *TheCall, in EmitBuiltinNewDeleteCall() argument
1338 EmitCallArgs(Args, Type, TheCall->arguments()); in EmitBuiltinNewDeleteCall()
H A DCGObjC.cpp3803 CXXOperatorCallExpr *TheCall = CXXOperatorCallExpr::Create( in GenerateObjCAtomicSetterCopyHelperFunction() local
3807 EmitStmt(TheCall); in GenerateObjCAtomicSetterCopyHelperFunction()