Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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 …]
/external/clang/lib/StaticAnalyzer/Checkers/
DCStringSyntaxChecker.cpp106 const Expr *DstArg = CE->getArg(0); in containsBadStrncatPattern() local
117 if (isSizeof(L, DstArg) && isStrlen(R, DstArg)) in containsBadStrncatPattern()
121 if (isSizeof(L, DstArg) && isOne(R->IgnoreParenCasts())) in containsBadStrncatPattern()
126 if (isSizeof(LenArg, DstArg)) in containsBadStrncatPattern()
142 const Expr *DstArg = CE->getArg(0); in VisitCallExpr() local
147 StringRef DstName = getPrintableName(DstArg); in VisitCallExpr()
/external/clang/lib/Sema/
DSemaChecking.cpp6374 const Expr *DstArg = Call->getArg(0)->IgnoreParenImpCasts(); in CheckStrlcpycatArguments() local
6375 if (!isConstantSizeArrayWithMoreThanOneElement(DstArg->getType(), Context)) in CheckStrlcpycatArguments()
6381 DstArg->printPretty(OS, nullptr, getPrintingPolicy()); in CheckStrlcpycatArguments()
6415 const Expr *DstArg = CE->getArg(0)->IgnoreParenCasts(); in CheckStrncatArguments() local
6428 if (referToTheSameDecl(SizeOfArg, DstArg)) in CheckStrncatArguments()
6438 if (referToTheSameDecl(DstArg, getSizeOfExprArg(L)) && in CheckStrncatArguments()
6439 referToTheSameDecl(DstArg, getStrlenExprArg(R))) in CheckStrncatArguments()
6463 QualType DstTy = DstArg->getType(); in CheckStrncatArguments()
6482 DstArg->printPretty(OS, nullptr, getPrintingPolicy()); in CheckStrncatArguments()
6485 DstArg->printPretty(OS, nullptr, getPrintingPolicy()); in CheckStrncatArguments()
/external/llvm-project/clang/lib/Sema/
DSemaChecking.cpp10128 const Expr *DstArg = Call->getArg(0)->IgnoreParenImpCasts(); in CheckStrlcpycatArguments() local
10129 if (!isConstantSizeArrayWithMoreThanOneElement(DstArg->getType(), Context)) in CheckStrlcpycatArguments()
10135 DstArg->printPretty(OS, nullptr, getPrintingPolicy()); in CheckStrlcpycatArguments()
10169 const Expr *DstArg = CE->getArg(0)->IgnoreParenCasts(); in CheckStrncatArguments() local
10182 if (referToTheSameDecl(SizeOfArg, DstArg)) in CheckStrncatArguments()
10192 if (referToTheSameDecl(DstArg, getSizeOfExprArg(L)) && in CheckStrncatArguments()
10193 referToTheSameDecl(DstArg, getStrlenExprArg(R))) in CheckStrncatArguments()
10217 QualType DstTy = DstArg->getType(); in CheckStrncatArguments()
10236 DstArg->printPretty(OS, nullptr, getPrintingPolicy()); in CheckStrncatArguments()
10239 DstArg->printPretty(OS, nullptr, getPrintingPolicy()); in CheckStrncatArguments()
/external/clang/lib/CodeGen/
DCGOpenMPRuntime.cpp3610 ImplicitParamDecl DstArg(C, /*DC=*/nullptr, Loc, in emitTaskDupFunction() local
3616 Args.push_back(&DstArg); in emitTaskDupFunction()
3631 CGF.GetAddrOfLocalVar(&DstArg), in emitTaskDupFunction()
/external/llvm-project/clang/lib/CodeGen/
DCGOpenMPRuntime.cpp3936 ImplicitParamDecl DstArg(C, /*DC=*/nullptr, Loc, /*Id=*/nullptr, in emitTaskDupFunction() local
3944 Args.push_back(&DstArg); in emitTaskDupFunction()
3960 CGF.GetAddrOfLocalVar(&DstArg), in emitTaskDupFunction()