Home
last modified time | relevance | path

Searched refs:DstArg (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCStringSyntaxChecker.cpp125 const Expr *DstArg = CE->getArg(0); in containsBadStrncatPattern() local
135 if (isSizeof(L, DstArg) && isStrlen(R, DstArg)) in containsBadStrncatPattern()
139 if (isSizeof(L, DstArg) && isOne(R->IgnoreParenCasts())) in containsBadStrncatPattern()
144 if (isSizeof(LenArg, DstArg)) in containsBadStrncatPattern()
156 const Expr *DstArg = CE->getArg(0); in containsBadStrlcpyStrlcatPattern() local
159 const auto *DstArgDRE = dyn_cast<DeclRefExpr>(DstArg->IgnoreParenImpCasts()); in containsBadStrlcpyStrlcatPattern()
163 if (isSizeof(LenArg, DstArg)) in containsBadStrlcpyStrlcatPattern()
189 dyn_cast<BinaryOperator>(DstArg->IgnoreParenImpCasts())) { in containsBadStrlcpyStrlcatPattern()
220 const Expr *DstArg = CE->getArg(0); in VisitCallExpr() local
225 StringRef DstName = getPrintableName(DstArg); in VisitCallExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp3433 Value *DstArg = CI->getArgOperand(0); in emitSnPrintfMemCpy() local
3439 DstArg, Align(1), StrArg, Align(1), in emitSnPrintfMemCpy()
3450 Value *DstEnd = B.CreateInBoundsGEP(Int8Ty, DstArg, NulOff, "endptr"); in emitSnPrintfMemCpy()
3469 Value *DstArg = CI->getArgOperand(0); in optimizeSnPrintFString() local
3506 Value *Ptr = DstArg; in optimizeSnPrintFString()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp8907 const Expr *DstArg = Call->getArg(0)->IgnoreParenImpCasts(); in CheckStrlcpycatArguments() local
8908 if (!isConstantSizeArrayWithMoreThanOneElement(DstArg->getType(), Context)) in CheckStrlcpycatArguments()
8914 DstArg->printPretty(OS, nullptr, getPrintingPolicy()); in CheckStrlcpycatArguments()
8945 const Expr *DstArg = CE->getArg(0)->IgnoreParenCasts(); in CheckStrncatArguments() local
8958 if (referToTheSameDecl(SizeOfArg, DstArg)) in CheckStrncatArguments()
8968 if (referToTheSameDecl(DstArg, getSizeOfExprArg(L)) && in CheckStrncatArguments()
8969 referToTheSameDecl(DstArg, getStrlenExprArg(R))) in CheckStrncatArguments()
8993 QualType DstTy = DstArg->getType(); in CheckStrncatArguments()
9012 DstArg->printPretty(OS, nullptr, getPrintingPolicy()); in CheckStrncatArguments()
9015 DstArg->printPretty(OS, nullptr, getPrintingPolicy()); in CheckStrncatArguments()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp3412 ImplicitParamDecl DstArg(C, /*DC=*/nullptr, Loc, /*Id=*/nullptr, in emitTaskDupFunction() local
3420 Args.push_back(&DstArg); in emitTaskDupFunction()
3436 CGF.GetAddrOfLocalVar(&DstArg), in emitTaskDupFunction()