Lines Matching refs:WalkAST

62 class WalkAST : public StmtVisitor<WalkAST> {  class
72 WalkAST(BugReporter &br, AnalysisDeclContext* ac, in WalkAST() function in __anon7858904f0111::WalkAST
89 typedef void (WalkAST::*FnCheck)(const CallExpr *, const FunctionDecl *);
110 void WalkAST::VisitChildren(Stmt *S) { in VisitChildren()
116 void WalkAST::VisitCallExpr(CallExpr *CE) { in VisitCallExpr()
133 .Case("gets", &WalkAST::checkCall_gets) in VisitCallExpr()
134 .Case("getpw", &WalkAST::checkCall_getpw) in VisitCallExpr()
135 .Case("mktemp", &WalkAST::checkCall_mktemp) in VisitCallExpr()
136 .Case("mkstemp", &WalkAST::checkCall_mkstemp) in VisitCallExpr()
137 .Case("mkdtemp", &WalkAST::checkCall_mkstemp) in VisitCallExpr()
138 .Case("mkstemps", &WalkAST::checkCall_mkstemp) in VisitCallExpr()
139 .Cases("strcpy", "__strcpy_chk", &WalkAST::checkCall_strcpy) in VisitCallExpr()
140 .Cases("strcat", "__strcat_chk", &WalkAST::checkCall_strcat) in VisitCallExpr()
141 .Case("drand48", &WalkAST::checkCall_rand) in VisitCallExpr()
142 .Case("erand48", &WalkAST::checkCall_rand) in VisitCallExpr()
143 .Case("jrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
144 .Case("lrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
145 .Case("mrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
146 .Case("nrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
147 .Case("lcong48", &WalkAST::checkCall_rand) in VisitCallExpr()
148 .Case("rand", &WalkAST::checkCall_rand) in VisitCallExpr()
149 .Case("rand_r", &WalkAST::checkCall_rand) in VisitCallExpr()
150 .Case("random", &WalkAST::checkCall_random) in VisitCallExpr()
151 .Case("vfork", &WalkAST::checkCall_vfork) in VisitCallExpr()
163 void WalkAST::VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
172 void WalkAST::VisitForStmt(ForStmt *FS) { in VisitForStmt()
219 void WalkAST::checkLoopConditionForFloat(const ForStmt *FS) { in checkLoopConditionForFloat()
306 void WalkAST::checkCall_gets(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_gets()
342 void WalkAST::checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_getpw()
382 void WalkAST::checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_mktemp()
424 void WalkAST::checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_mkstemp()
507 void WalkAST::checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strcpy()
534 void WalkAST::checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strcat()
558 bool WalkAST::checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strCommon()
589 void WalkAST::checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_rand()
632 void WalkAST::checkCall_random(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_random()
660 void WalkAST::checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_vfork()
683 void WalkAST::checkUncheckedReturnValue(CallExpr *CE) { in checkUncheckedReturnValue()
754 WalkAST walker(BR, mgr.getAnalysisDeclContext(D), filter); in checkASTCodeBody()