Lines Matching refs:getNodeAs

46   if (const auto *DestMalloc = Result.Nodes.getNodeAs<Expr>(DestMallocExprName))  in getDestCapacityExpr()
50 Result.Nodes.getNodeAs<VariableArrayType>(DestArrayTyName)) in getDestCapacityExpr()
53 if (const auto *DestVD = Result.Nodes.getNodeAs<VarDecl>(DestVarDeclName)) in getDestCapacityExpr()
106 Result.Nodes.getNodeAs<CallExpr>(WrongLengthExprName)) in getStrlenExpr()
119 if (Result.Nodes.getNodeAs<Expr>(UnknownLengthName)) in getGivenLength()
123 getLength(Result.Nodes.getNodeAs<Expr>(WrongLengthExprName), Result)) in getGivenLength()
127 getLength(Result.Nodes.getNodeAs<Expr>(LengthExprName), Result)) in getGivenLength()
170 return !Result.Nodes.getNodeAs<Expr>(UnknownDestName); in isKnownDest()
179 exprToStr(Result.Nodes.getNodeAs<Expr>(LengthExprName), Result).trim(); in isDestBasedOnGivenLength()
187 if (const auto *DestDRE = Result.Nodes.getNodeAs<DeclRefExpr>(DestExprName)) in isDestAndSrcEquals()
188 if (const auto *SrcDRE = Result.Nodes.getNodeAs<DeclRefExpr>(SrcExprName)) in isDestAndSrcEquals()
198 Result.Nodes.getNodeAs<CXXMemberCallExpr>(DestExprName); in isStringDataAndLength()
199 const auto *SrcExpr = Result.Nodes.getNodeAs<CXXMemberCallExpr>(SrcExprName); in isStringDataAndLength()
201 Result.Nodes.getNodeAs<CXXMemberCallExpr>(WrongLengthExprName); in isStringDataAndLength()
222 if (Result.Nodes.getNodeAs<Expr>(UnknownLengthName)) in isGivenLengthEqualToSrcLength()
229 int SrcLength = getLength(Result.Nodes.getNodeAs<Expr>(SrcExprName), Result); in isGivenLengthEqualToSrcLength()
234 if (const auto *LengthExpr = Result.Nodes.getNodeAs<Expr>(LengthExprName)) in isGivenLengthEqualToSrcLength()
242 if (const auto *SrcVD = Result.Nodes.getNodeAs<VarDecl>(SrcVarDeclName)) in isGivenLengthEqualToSrcLength()
249 if (Result.Nodes.getNodeAs<Expr>(UnknownLengthName)) in isCorrectGivenLength()
280 if (Result.Nodes.getNodeAs<IntegerLiteral>(WrongLengthExprName)) in isFixedGivenLengthAndUnknownSrc()
281 return !getLength(Result.Nodes.getNodeAs<Expr>(SrcExprName), Result); in isFixedGivenLengthAndUnknownSrc()
368 const auto *LengthExpr = Result.Nodes.getNodeAs<Expr>(LengthExprName); in lengthArgHandle()
375 const auto *FunctionExpr = Result.Nodes.getNodeAs<CallExpr>(FunctionExprName); in lengthArgPosHandle()
383 const auto *Dest = Result.Nodes.getNodeAs<Expr>(DestExprName); in isDestExprFix()
414 const auto *FunctionExpr = Result.Nodes.getNodeAs<CallExpr>(FunctionExprName); in removeArg()
426 const auto *FunctionExpr = Result.Nodes.getNodeAs<CallExpr>(FunctionExprName); in renameFunc()
451 const auto *FunctionExpr = Result.Nodes.getNodeAs<CallExpr>(FunctionExprName); in insertDestCapacityArg()
472 const auto *FunctionExpr = Result.Nodes.getNodeAs<CallExpr>(FunctionExprName); in insertNullTerminatorExpr()
485 exprToStr(Result.Nodes.getNodeAs<Expr>(DestExprName), Result) + "[" + in insertNullTerminatorExpr()
486 exprToStr(Result.Nodes.getNodeAs<Expr>(LengthExprName), Result) + in insertNullTerminatorExpr()
794 const auto *FunctionExpr = Result.Nodes.getNodeAs<CallExpr>(FunctionExprName); in check()
850 diag(Result.Nodes.getNodeAs<CallExpr>(FunctionExprName)->getBeginLoc(), in memoryHandlerFunctionFix()
880 Result.Nodes.getNodeAs<ArrayType>(DestArrayTyName) && !IsDestFixed; in memcpyFix()
901 Result.Nodes.getNodeAs<ArrayType>(DestArrayTyName) && in memcpy_sFix()
922 const auto *FunctionExpr = Result.Nodes.getNodeAs<CallExpr>(FunctionExprName); in memchrFix()
930 if (const auto *CastExpr = Result.Nodes.getNodeAs<Expr>(CastExprName)) { in memchrFix()
958 diag(Result.Nodes.getNodeAs<CallExpr>(FunctionExprName)->getBeginLoc(), in strerror_sFix()
968 const auto *FunctionExpr = Result.Nodes.getNodeAs<CallExpr>(FunctionExprName); in ncmpFix()
982 getLength(Result.Nodes.getNodeAs<Expr>(SrcExprName), Result); in ncmpFix()
1004 diag(Result.Nodes.getNodeAs<CallExpr>(FunctionExprName)->getBeginLoc(), in xfrmFix()