Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DCStringSyntaxChecker.cpp127 const Expr *LenArg = CE->getArg(2); in containsBadStrncatPattern() local
130 if (const auto *BE = dyn_cast<BinaryOperator>(LenArg->IgnoreParenCasts())) { in containsBadStrncatPattern()
144 if (isSizeof(LenArg, DstArg)) in containsBadStrncatPattern()
148 if (isSizeof(LenArg, SrcArg)) in containsBadStrncatPattern()
157 const Expr *LenArg = CE->getArg(2); in containsBadStrlcpyStrlcatPattern() local
161 dyn_cast<DeclRefExpr>(LenArg->IgnoreParenLValueCasts()); in containsBadStrlcpyStrlcatPattern()
163 if (isSizeof(LenArg, DstArg)) in containsBadStrlcpyStrlcatPattern()
175 LenArg = LenArgVal->getInit(); in containsBadStrlcpyStrlcatPattern()
181 if (const auto *IL = dyn_cast<IntegerLiteral>(LenArg->IgnoreParenImpCasts())) { in containsBadStrlcpyStrlcatPattern()
221 const Expr *LenArg = CE->getArg(2); in VisitCallExpr() local
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DCStringSyntaxChecker.cpp108 const Expr *LenArg = CE->getArg(2); in containsBadStrncatPattern() local
112 dyn_cast<BinaryOperator>(LenArg->IgnoreParenCasts())) { in containsBadStrncatPattern()
126 if (isSizeof(LenArg, DstArg)) in containsBadStrncatPattern()
130 if (isSizeof(LenArg, SrcArg)) in containsBadStrncatPattern()
143 const Expr *LenArg = CE->getArg(2); in VisitCallExpr() local
145 PathDiagnosticLocation::createBegin(LenArg, BR.getSourceManager(), AC); in VisitCallExpr()
162 LenArg->getSourceRange()); in VisitCallExpr()
/external/clang/lib/Sema/
DSemaChecking.cpp6135 unsigned LenArg = (BId == Builtin::BIstrndup ? 1 : 2); in CheckMemaccessArguments() local
6136 const Expr *LenExpr = Call->getArg(LenArg)->IgnoreParenImpCasts(); in CheckMemaccessArguments()
6417 const Expr *LenArg = CE->getArg(2)->IgnoreParenCasts(); in CheckStrncatArguments() local
6419 if (CheckMemorySizeofForComparison(*this, LenArg, FnName, CE->getLocStart(), in CheckStrncatArguments()
6426 if (const Expr *SizeOfArg = getSizeOfExprArg(LenArg)) { in CheckStrncatArguments()
6433 } else if (const BinaryOperator *BE = dyn_cast<BinaryOperator>(LenArg)) { in CheckStrncatArguments()
6451 SourceLocation SL = LenArg->getLocStart(); in CheckStrncatArguments()
6452 SourceRange SR = LenArg->getSourceRange(); in CheckStrncatArguments()
DSemaExpr.cpp1687 IntegerLiteral *LenArg = IntegerLiteral::Create(Context, Len, SizeType, in ActOnStringLiteral() local
1689 Expr *Args[] = { Lit, LenArg }; in ActOnStringLiteral()
/external/llvm-project/clang/lib/Sema/
DSemaChecking.cpp9862 unsigned LenArg = in CheckMemaccessArguments() local
9864 const Expr *LenExpr = Call->getArg(LenArg)->IgnoreParenImpCasts(); in CheckMemaccessArguments()
10171 const Expr *LenArg = CE->getArg(2)->IgnoreParenCasts(); in CheckStrncatArguments() local
10173 if (CheckMemorySizeofForComparison(*this, LenArg, FnName, CE->getBeginLoc(), in CheckStrncatArguments()
10180 if (const Expr *SizeOfArg = getSizeOfExprArg(LenArg)) { in CheckStrncatArguments()
10187 } else if (const BinaryOperator *BE = dyn_cast<BinaryOperator>(LenArg)) { in CheckStrncatArguments()
10205 SourceLocation SL = LenArg->getBeginLoc(); in CheckStrncatArguments()
10206 SourceRange SR = LenArg->getSourceRange(); in CheckStrncatArguments()
DSemaExpr.cpp1890 IntegerLiteral *LenArg = IntegerLiteral::Create(Context, Len, SizeType, in ActOnStringLiteral() local
1892 Expr *Args[] = { Lit, LenArg }; in ActOnStringLiteral()