Lines Matching refs:WalkAST
70 class WalkAST : public StmtVisitor<WalkAST> { class
80 WalkAST(BugReporter &br, AnalysisDeclContext* ac, in WalkAST() function in __anondfdc49850111::WalkAST
98 typedef void (WalkAST::*FnCheck)(const CallExpr *, const FunctionDecl *);
99 typedef void (WalkAST::*MsgCheck)(const ObjCMessageExpr *);
126 void WalkAST::VisitChildren(Stmt *S) { in VisitChildren()
132 void WalkAST::VisitCallExpr(CallExpr *CE) { in VisitCallExpr()
149 .Case("bcmp", &WalkAST::checkCall_bcmp) in VisitCallExpr()
150 .Case("bcopy", &WalkAST::checkCall_bcopy) in VisitCallExpr()
151 .Case("bzero", &WalkAST::checkCall_bzero) in VisitCallExpr()
152 .Case("gets", &WalkAST::checkCall_gets) in VisitCallExpr()
153 .Case("getpw", &WalkAST::checkCall_getpw) in VisitCallExpr()
154 .Case("mktemp", &WalkAST::checkCall_mktemp) in VisitCallExpr()
155 .Case("mkstemp", &WalkAST::checkCall_mkstemp) in VisitCallExpr()
156 .Case("mkdtemp", &WalkAST::checkCall_mkstemp) in VisitCallExpr()
157 .Case("mkstemps", &WalkAST::checkCall_mkstemp) in VisitCallExpr()
158 .Cases("strcpy", "__strcpy_chk", &WalkAST::checkCall_strcpy) in VisitCallExpr()
159 .Cases("strcat", "__strcat_chk", &WalkAST::checkCall_strcat) in VisitCallExpr()
162 &WalkAST::checkDeprecatedOrUnsafeBufferHandling) in VisitCallExpr()
165 &WalkAST::checkDeprecatedOrUnsafeBufferHandling) in VisitCallExpr()
167 &WalkAST::checkDeprecatedOrUnsafeBufferHandling) in VisitCallExpr()
168 .Case("drand48", &WalkAST::checkCall_rand) in VisitCallExpr()
169 .Case("erand48", &WalkAST::checkCall_rand) in VisitCallExpr()
170 .Case("jrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
171 .Case("lrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
172 .Case("mrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
173 .Case("nrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
174 .Case("lcong48", &WalkAST::checkCall_rand) in VisitCallExpr()
175 .Case("rand", &WalkAST::checkCall_rand) in VisitCallExpr()
176 .Case("rand_r", &WalkAST::checkCall_rand) in VisitCallExpr()
177 .Case("random", &WalkAST::checkCall_random) in VisitCallExpr()
178 .Case("vfork", &WalkAST::checkCall_vfork) in VisitCallExpr()
190 void WalkAST::VisitObjCMessageExpr(ObjCMessageExpr *ME) { in VisitObjCMessageExpr()
194 &WalkAST::checkMsg_decodeValueOfObjCType) in VisitObjCMessageExpr()
204 void WalkAST::VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
213 void WalkAST::VisitForStmt(ForStmt *FS) { in VisitForStmt()
262 void WalkAST::checkLoopConditionForFloat(const ForStmt *FS) { in checkLoopConditionForFloat()
349 void WalkAST::checkCall_bcmp(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_bcmp()
391 void WalkAST::checkCall_bcopy(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_bcopy()
434 void WalkAST::checkCall_bzero(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_bzero()
476 void WalkAST::checkCall_gets(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_gets()
512 void WalkAST::checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_getpw()
552 void WalkAST::checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_mktemp()
593 void WalkAST::checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_mkstemp()
678 void WalkAST::checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strcpy()
717 void WalkAST::checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strcat()
754 void WalkAST::checkDeprecatedOrUnsafeBufferHandling(const CallExpr *CE, in checkDeprecatedOrUnsafeBufferHandling()
825 bool WalkAST::checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strCommon()
856 void WalkAST::checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_rand()
899 void WalkAST::checkCall_random(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_random()
927 void WalkAST::checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_vfork()
951 void WalkAST::checkMsg_decodeValueOfObjCType(const ObjCMessageExpr *ME) { in checkMsg_decodeValueOfObjCType()
998 void WalkAST::checkUncheckedReturnValue(CallExpr *CE) { in checkUncheckedReturnValue()
1069 WalkAST walker(BR, mgr.getAnalysisDeclContext(D), filter); in checkASTCodeBody()