Lines Matching refs:WalkAST

67 class WalkAST : public StmtVisitor<WalkAST> {  class
77 WalkAST(BugReporter &br, AnalysisDeclContext* ac, in WalkAST() function in __anon73e20bbc0111::WalkAST
94 typedef void (WalkAST::*FnCheck)(const CallExpr *, const FunctionDecl *);
118 void WalkAST::VisitChildren(Stmt *S) { in VisitChildren()
124 void WalkAST::VisitCallExpr(CallExpr *CE) { in VisitCallExpr()
141 .Case("bcmp", &WalkAST::checkCall_bcmp) in VisitCallExpr()
142 .Case("bcopy", &WalkAST::checkCall_bcopy) in VisitCallExpr()
143 .Case("bzero", &WalkAST::checkCall_bzero) in VisitCallExpr()
144 .Case("gets", &WalkAST::checkCall_gets) in VisitCallExpr()
145 .Case("getpw", &WalkAST::checkCall_getpw) in VisitCallExpr()
146 .Case("mktemp", &WalkAST::checkCall_mktemp) in VisitCallExpr()
147 .Case("mkstemp", &WalkAST::checkCall_mkstemp) in VisitCallExpr()
148 .Case("mkdtemp", &WalkAST::checkCall_mkstemp) in VisitCallExpr()
149 .Case("mkstemps", &WalkAST::checkCall_mkstemp) in VisitCallExpr()
150 .Cases("strcpy", "__strcpy_chk", &WalkAST::checkCall_strcpy) in VisitCallExpr()
151 .Cases("strcat", "__strcat_chk", &WalkAST::checkCall_strcat) in VisitCallExpr()
152 .Case("drand48", &WalkAST::checkCall_rand) in VisitCallExpr()
153 .Case("erand48", &WalkAST::checkCall_rand) in VisitCallExpr()
154 .Case("jrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
155 .Case("lrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
156 .Case("mrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
157 .Case("nrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
158 .Case("lcong48", &WalkAST::checkCall_rand) in VisitCallExpr()
159 .Case("rand", &WalkAST::checkCall_rand) in VisitCallExpr()
160 .Case("rand_r", &WalkAST::checkCall_rand) in VisitCallExpr()
161 .Case("random", &WalkAST::checkCall_random) in VisitCallExpr()
162 .Case("vfork", &WalkAST::checkCall_vfork) in VisitCallExpr()
174 void WalkAST::VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
183 void WalkAST::VisitForStmt(ForStmt *FS) { in VisitForStmt()
230 void WalkAST::checkLoopConditionForFloat(const ForStmt *FS) { in checkLoopConditionForFloat()
316 void WalkAST::checkCall_bcmp(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_bcmp()
358 void WalkAST::checkCall_bcopy(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_bcopy()
401 void WalkAST::checkCall_bzero(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_bzero()
443 void WalkAST::checkCall_gets(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_gets()
479 void WalkAST::checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_getpw()
519 void WalkAST::checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_mktemp()
561 void WalkAST::checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_mkstemp()
645 void WalkAST::checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strcpy()
683 void WalkAST::checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strcat()
707 bool WalkAST::checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strCommon()
738 void WalkAST::checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_rand()
781 void WalkAST::checkCall_random(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_random()
809 void WalkAST::checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_vfork()
832 void WalkAST::checkUncheckedReturnValue(CallExpr *CE) { in checkUncheckedReturnValue()
903 WalkAST walker(BR, mgr.getAnalysisDeclContext(D), filter); in checkASTCodeBody()