Lines Matching refs:getArg
63 SourceRange range(call->getArg(desiredArgCount)->getLocStart(), in checkArgCount()
64 call->getArg(argCount - 1)->getLocEnd()); in checkArgCount()
68 << call->getArg(1)->getSourceRange(); in checkArgCount()
78 Expr *ValArg = TheCall->getArg(0); in SemaBuiltinAnnotation()
87 Expr *StrArg = TheCall->getArg(1)->IgnoreParenCasts(); in SemaBuiltinAnnotation()
125 if (CheckObjCString(TheCall->getArg(0))) in CheckBuiltinFunctionCall()
378 << TheCall->getArg(ImmArg)->getSourceRange(); in CheckARMBuiltinFunctionCall()
383 Expr *Arg = TheCall->getArg(PtrArgNum); in CheckARMBuiltinFunctionCall()
416 if (TheCall->getArg(i)->isTypeDependent() || in CheckARMBuiltinFunctionCall()
417 TheCall->getArg(i)->isValueDependent()) in CheckARMBuiltinFunctionCall()
428 << l << u+l << TheCall->getArg(i)->getSourceRange(); in CheckARMBuiltinFunctionCall()
448 if (TheCall->getArg(i)->isTypeDependent() || in CheckMipsBuiltinFunctionCall()
449 TheCall->getArg(i)->isValueDependent()) in CheckMipsBuiltinFunctionCall()
461 << l << u << TheCall->getArg(i)->getSourceRange(); in CheckMipsBuiltinFunctionCall()
719 Diag(TheCall->getArg(NumArgs[Form])->getLocStart(), in SemaAtomicOpsOverloaded()
727 Expr *Ptr = TheCall->getArg(0); in SemaAtomicOpsOverloaded()
847 ExprResult Arg = TheCall->getArg(i); in SemaAtomicOpsOverloaded()
860 SubExprs.push_back(TheCall->getArg(1)); // Val1 in SemaAtomicOpsOverloaded()
863 SubExprs.push_back(TheCall->getArg(1)); // Order in SemaAtomicOpsOverloaded()
868 SubExprs.push_back(TheCall->getArg(2)); // Order in SemaAtomicOpsOverloaded()
869 SubExprs.push_back(TheCall->getArg(1)); // Val1 in SemaAtomicOpsOverloaded()
873 SubExprs.push_back(TheCall->getArg(3)); // Order in SemaAtomicOpsOverloaded()
874 SubExprs.push_back(TheCall->getArg(1)); // Val1 in SemaAtomicOpsOverloaded()
875 SubExprs.push_back(TheCall->getArg(2)); // Val2 in SemaAtomicOpsOverloaded()
878 SubExprs.push_back(TheCall->getArg(3)); // Order in SemaAtomicOpsOverloaded()
879 SubExprs.push_back(TheCall->getArg(1)); // Val1 in SemaAtomicOpsOverloaded()
880 SubExprs.push_back(TheCall->getArg(4)); // OrderFail in SemaAtomicOpsOverloaded()
881 SubExprs.push_back(TheCall->getArg(2)); // Val2 in SemaAtomicOpsOverloaded()
884 SubExprs.push_back(TheCall->getArg(4)); // Order in SemaAtomicOpsOverloaded()
885 SubExprs.push_back(TheCall->getArg(1)); // Val1 in SemaAtomicOpsOverloaded()
886 SubExprs.push_back(TheCall->getArg(5)); // OrderFail in SemaAtomicOpsOverloaded()
887 SubExprs.push_back(TheCall->getArg(2)); // Val2 in SemaAtomicOpsOverloaded()
888 SubExprs.push_back(TheCall->getArg(3)); // Weak in SemaAtomicOpsOverloaded()
913 ExprResult Arg = E->getArg(0); in checkBuiltinArgument()
949 Expr *FirstArg = TheCall->getArg(0); in SemaBuiltinAtomicOverloaded()
1205 ExprResult Arg = TheCall->getArg(i+1); in SemaBuiltinAtomicOverloaded()
1290 Diag(TheCall->getArg(2)->getLocStart(), in SemaBuiltinVAStart()
1294 << SourceRange(TheCall->getArg(2)->getLocStart(), in SemaBuiltinVAStart()
1327 const Expr *Arg = TheCall->getArg(1)->IgnoreParenCasts(); in SemaBuiltinVAStart()
1345 Diag(TheCall->getArg(1)->getLocStart(), in SemaBuiltinVAStart()
1357 return Diag(TheCall->getArg(2)->getLocStart(), in SemaBuiltinUnorderedCompare()
1360 << SourceRange(TheCall->getArg(2)->getLocStart(), in SemaBuiltinUnorderedCompare()
1363 ExprResult OrigArg0 = TheCall->getArg(0); in SemaBuiltinUnorderedCompare()
1364 ExprResult OrigArg1 = TheCall->getArg(1); in SemaBuiltinUnorderedCompare()
1401 return Diag(TheCall->getArg(NumArgs)->getLocStart(), in SemaBuiltinFPClassification()
1404 << SourceRange(TheCall->getArg(NumArgs)->getLocStart(), in SemaBuiltinFPClassification()
1407 Expr *OrigArg = TheCall->getArg(NumArgs-1); in SemaBuiltinFPClassification()
1445 QualType resType = TheCall->getArg(0)->getType(); in SemaBuiltinShuffleVector()
1448 if (!TheCall->getArg(0)->isTypeDependent() && in SemaBuiltinShuffleVector()
1449 !TheCall->getArg(1)->isTypeDependent()) { in SemaBuiltinShuffleVector()
1450 QualType LHSType = TheCall->getArg(0)->getType(); in SemaBuiltinShuffleVector()
1451 QualType RHSType = TheCall->getArg(1)->getType(); in SemaBuiltinShuffleVector()
1455 << SourceRange(TheCall->getArg(0)->getLocStart(), in SemaBuiltinShuffleVector()
1456 TheCall->getArg(1)->getLocEnd()); in SemaBuiltinShuffleVector()
1470 << SourceRange(TheCall->getArg(1)->getLocStart(), in SemaBuiltinShuffleVector()
1471 TheCall->getArg(1)->getLocEnd()); in SemaBuiltinShuffleVector()
1476 << SourceRange(TheCall->getArg(0)->getLocStart(), in SemaBuiltinShuffleVector()
1477 TheCall->getArg(1)->getLocEnd()); in SemaBuiltinShuffleVector()
1487 if (TheCall->getArg(i)->isTypeDependent() || in SemaBuiltinShuffleVector()
1488 TheCall->getArg(i)->isValueDependent()) in SemaBuiltinShuffleVector()
1492 if (!TheCall->getArg(i)->isIntegerConstantExpr(Result, Context)) in SemaBuiltinShuffleVector()
1495 << TheCall->getArg(i)->getSourceRange()); in SemaBuiltinShuffleVector()
1500 << TheCall->getArg(i)->getSourceRange()); in SemaBuiltinShuffleVector()
1506 exprs.push_back(TheCall->getArg(i)); in SemaBuiltinShuffleVector()
1530 Expr *Arg = TheCall->getArg(i); in SemaBuiltinPrefetch()
1561 Expr *Arg = TheCall->getArg(ArgNum); in SemaBuiltinConstantArg()
1582 if (TheCall->getArg(1)->isTypeDependent() || in SemaBuiltinObjectSize()
1583 TheCall->getArg(1)->isValueDependent()) in SemaBuiltinObjectSize()
1590 Expr *Arg = TheCall->getArg(1); in SemaBuiltinObjectSize()
1602 Expr *Arg = TheCall->getArg(1); in SemaBuiltinLongjmp()
1760 const Expr *Arg = CE->getArg(ArgIndex - 1); in checkFormatStringExpr()
1769 const Expr *Arg = CE->getArg(0); in checkFormatStringExpr()
3091 const Expr *LenExpr = Call->getArg(LenArg)->IgnoreParenImpCasts(); in CheckMemaccessArguments()
3099 const Expr *Dest = Call->getArg(ArgIdx)->IgnoreParenImpCasts(); in CheckMemaccessArguments()
3100 SourceRange ArgRange = Call->getArg(ArgIdx)->getSourceRange(); in CheckMemaccessArguments()
3272 const Expr *SrcArg = ignoreLiteralAdditions(Call->getArg(1), Context); in CheckStrlcpycatArguments()
3273 const Expr *SizeArg = ignoreLiteralAdditions(Call->getArg(2), Context); in CheckStrlcpycatArguments()
3284 CompareWithSrc = ignoreLiteralAdditions(SizeCall->getArg(0), Context); in CheckStrlcpycatArguments()
3304 const Expr *OriginalSizeArg = Call->getArg(2); in CheckStrlcpycatArguments()
3312 const Expr *DstArg = Call->getArg(0)->IgnoreParenImpCasts(); in CheckStrlcpycatArguments()
3340 return CE->getArg(0)->IgnoreParenCasts(); in getStrlenExprArg()
3353 const Expr *DstArg = CE->getArg(0)->IgnoreParenCasts(); in CheckStrncatArguments()
3354 const Expr *SrcArg = CE->getArg(1)->IgnoreParenCasts(); in CheckStrncatArguments()
3355 const Expr *LenArg = CE->getArg(2)->IgnoreParenCasts(); in CheckStrncatArguments()
4518 Expr *CurrA = TheCall->getArg(i); in CheckImplicitArgumentConversions()
4523 IsImplicitBoolFloatConversion(S, TheCall->getArg(i - 1), false)); in CheckImplicitArgumentConversions()
4525 IsImplicitBoolFloatConversion(S, TheCall->getArg(i + 1), false)); in CheckImplicitArgumentConversions()
4679 Expr *LastA = CEx->getArg(NumArgs - 1); in CheckImplicitConversion()
5469 if (Expr *capturer = findCapturingExpr(*this, msg->getArg(i), owner)) in checkRetainCycles()