Lines Matching refs:WalkAST
69 class WalkAST : public StmtVisitor<WalkAST> { class
79 WalkAST(BugReporter &br, AnalysisDeclContext* ac, in WalkAST() function in __anonf8980c020111::WalkAST
97 typedef void (WalkAST::*FnCheck)(const CallExpr *, const FunctionDecl *);
98 typedef void (WalkAST::*MsgCheck)(const ObjCMessageExpr *);
125 void WalkAST::VisitChildren(Stmt *S) { in VisitChildren()
131 void WalkAST::VisitCallExpr(CallExpr *CE) { in VisitCallExpr()
148 .Case("bcmp", &WalkAST::checkCall_bcmp) in VisitCallExpr()
149 .Case("bcopy", &WalkAST::checkCall_bcopy) in VisitCallExpr()
150 .Case("bzero", &WalkAST::checkCall_bzero) in VisitCallExpr()
151 .Case("gets", &WalkAST::checkCall_gets) in VisitCallExpr()
152 .Case("getpw", &WalkAST::checkCall_getpw) in VisitCallExpr()
153 .Case("mktemp", &WalkAST::checkCall_mktemp) in VisitCallExpr()
154 .Case("mkstemp", &WalkAST::checkCall_mkstemp) in VisitCallExpr()
155 .Case("mkdtemp", &WalkAST::checkCall_mkstemp) in VisitCallExpr()
156 .Case("mkstemps", &WalkAST::checkCall_mkstemp) in VisitCallExpr()
157 .Cases("strcpy", "__strcpy_chk", &WalkAST::checkCall_strcpy) in VisitCallExpr()
158 .Cases("strcat", "__strcat_chk", &WalkAST::checkCall_strcat) in VisitCallExpr()
161 &WalkAST::checkDeprecatedOrUnsafeBufferHandling) in VisitCallExpr()
164 &WalkAST::checkDeprecatedOrUnsafeBufferHandling) in VisitCallExpr()
166 &WalkAST::checkDeprecatedOrUnsafeBufferHandling) in VisitCallExpr()
167 .Case("drand48", &WalkAST::checkCall_rand) in VisitCallExpr()
168 .Case("erand48", &WalkAST::checkCall_rand) in VisitCallExpr()
169 .Case("jrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
170 .Case("lrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
171 .Case("mrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
172 .Case("nrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
173 .Case("lcong48", &WalkAST::checkCall_rand) in VisitCallExpr()
174 .Case("rand", &WalkAST::checkCall_rand) in VisitCallExpr()
175 .Case("rand_r", &WalkAST::checkCall_rand) in VisitCallExpr()
176 .Case("random", &WalkAST::checkCall_random) in VisitCallExpr()
177 .Case("vfork", &WalkAST::checkCall_vfork) in VisitCallExpr()
189 void WalkAST::VisitObjCMessageExpr(ObjCMessageExpr *ME) { in VisitObjCMessageExpr()
193 &WalkAST::checkMsg_decodeValueOfObjCType) in VisitObjCMessageExpr()
203 void WalkAST::VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
212 void WalkAST::VisitForStmt(ForStmt *FS) { in VisitForStmt()
260 void WalkAST::checkLoopConditionForFloat(const ForStmt *FS) { in checkLoopConditionForFloat()
347 void WalkAST::checkCall_bcmp(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_bcmp()
389 void WalkAST::checkCall_bcopy(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_bcopy()
432 void WalkAST::checkCall_bzero(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_bzero()
474 void WalkAST::checkCall_gets(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_gets()
510 void WalkAST::checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_getpw()
550 void WalkAST::checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_mktemp()
591 void WalkAST::checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_mkstemp()
676 void WalkAST::checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strcpy()
715 void WalkAST::checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strcat()
752 void WalkAST::checkDeprecatedOrUnsafeBufferHandling(const CallExpr *CE, in checkDeprecatedOrUnsafeBufferHandling()
822 bool WalkAST::checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strCommon()
858 void WalkAST::checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_rand()
897 void WalkAST::checkCall_random(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_random()
925 void WalkAST::checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_vfork()
949 void WalkAST::checkMsg_decodeValueOfObjCType(const ObjCMessageExpr *ME) { in checkMsg_decodeValueOfObjCType()
1008 void WalkAST::checkUncheckedReturnValue(CallExpr *CE) { in checkUncheckedReturnValue()
1079 WalkAST walker(BR, mgr.getAnalysisDeclContext(D), filter); in checkASTCodeBody()