Lines Matching refs:ArgNum
153 inline bool isDestinationArgument(unsigned ArgNum) const { in isDestinationArgument()
155 DstArgs.end(), ArgNum) != DstArgs.end()); in isDestinationArgument()
340 unsigned ArgNum = *I; in propagateFromPre() local
343 if (ArgNum == ReturnValueIndex) { in propagateFromPre()
350 if (CE->getNumArgs() < (ArgNum + 1)) in propagateFromPre()
352 const Expr* Arg = CE->getArg(ArgNum); in propagateFromPre()
453 unsigned ArgNum = *I; in process() local
455 if (ArgNum == InvalidArgIndex) { in process()
467 if (CE->getNumArgs() < (ArgNum + 1)) in process()
469 if ((IsTainted = isTaintedOrPointsToTainted(CE->getArg(ArgNum), State, C))) in process()
478 unsigned ArgNum = *I; in process() local
481 if (ArgNum == InvalidArgIndex) { in process()
499 if (ArgNum == ReturnValueIndex) { in process()
505 assert(ArgNum < CE->getNumArgs()); in process()
506 State = State->add<TaintArgsOnPostVisit>(ArgNum); in process()
608 unsigned int &ArgNum) { in getPrintfFormatArgumentNum() argument
616 ArgNum = Format->getFormatIdx() - 1; in getPrintfFormatArgumentNum()
618 CE->getNumArgs() > ArgNum) in getPrintfFormatArgumentNum()
624 ArgNum = 0; in getPrintfFormatArgumentNum()
656 unsigned int ArgNum = 0; in checkUncontrolledFormatString() local
657 if (!getPrintfFormatArgumentNum(CE, C, ArgNum)) in checkUncontrolledFormatString()
661 if (generateReportIfTainted(CE->getArg(ArgNum), in checkUncontrolledFormatString()
673 unsigned ArgNum = llvm::StringSwitch<unsigned>(Name) in checkSystemCall() local
686 if (ArgNum == UINT_MAX || CE->getNumArgs() < (ArgNum + 1)) in checkSystemCall()
689 if (generateReportIfTainted(CE->getArg(ArgNum), in checkSystemCall()
702 unsigned ArgNum = InvalidArgIndex; in checkTaintedBufferSize() local
709 ArgNum = 2; in checkTaintedBufferSize()
712 ArgNum = 1; in checkTaintedBufferSize()
718 if (ArgNum == InvalidArgIndex) { in checkTaintedBufferSize()
722 ArgNum = 0; in checkTaintedBufferSize()
724 ArgNum = 3; in checkTaintedBufferSize()
726 ArgNum = 1; in checkTaintedBufferSize()
728 ArgNum = 2; in checkTaintedBufferSize()
731 if (ArgNum != InvalidArgIndex && CE->getNumArgs() > ArgNum && in checkTaintedBufferSize()
732 generateReportIfTainted(CE->getArg(ArgNum), MsgTaintedBufferSize, C)) in checkTaintedBufferSize()