Home
last modified time | relevance | path

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

/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()