• Home
  • Raw
  • Download

Lines Matching refs:WalkAST

35 class WalkAST : public StmtVisitor<WalkAST> {  class
43 WalkAST(BugReporter &br) : BR(br), II_setid(), in WalkAST() function in __anonbcda2f520111::WalkAST
58 typedef void (WalkAST::*FnCheck)(const CallExpr *,
78 IdentifierInfo *WalkAST::getIdentifier(IdentifierInfo *& II, const char *str) { in getIdentifier()
89 void WalkAST::VisitChildren(Stmt *S) { in VisitChildren()
95 void WalkAST::VisitCallExpr(CallExpr *CE) { in VisitCallExpr()
112 .Case("gets", &WalkAST::checkCall_gets) in VisitCallExpr()
113 .Case("getpw", &WalkAST::checkCall_getpw) in VisitCallExpr()
114 .Case("mktemp", &WalkAST::checkCall_mktemp) in VisitCallExpr()
115 .Cases("strcpy", "__strcpy_chk", &WalkAST::checkCall_strcpy) in VisitCallExpr()
116 .Cases("strcat", "__strcat_chk", &WalkAST::checkCall_strcat) in VisitCallExpr()
117 .Case("drand48", &WalkAST::checkCall_rand) in VisitCallExpr()
118 .Case("erand48", &WalkAST::checkCall_rand) in VisitCallExpr()
119 .Case("jrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
120 .Case("lrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
121 .Case("mrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
122 .Case("nrand48", &WalkAST::checkCall_rand) in VisitCallExpr()
123 .Case("lcong48", &WalkAST::checkCall_rand) in VisitCallExpr()
124 .Case("rand", &WalkAST::checkCall_rand) in VisitCallExpr()
125 .Case("rand_r", &WalkAST::checkCall_rand) in VisitCallExpr()
126 .Case("random", &WalkAST::checkCall_random) in VisitCallExpr()
138 void WalkAST::VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
147 void WalkAST::VisitForStmt(ForStmt *FS) { in VisitForStmt()
194 void WalkAST::checkLoopConditionForFloat(const ForStmt *FS) { in checkLoopConditionForFloat()
273 void WalkAST::checkCall_gets(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_gets()
305 void WalkAST::checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_getpw()
341 void WalkAST::checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_mktemp()
375 void WalkAST::checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strcpy()
397 void WalkAST::checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strcat()
416 bool WalkAST::checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strCommon()
448 void WalkAST::checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_rand()
490 void WalkAST::checkCall_random(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_random()
517 void WalkAST::checkUncheckedReturnValue(CallExpr *CE) { in checkUncheckedReturnValue()
581 WalkAST walker(BR); in checkASTCodeBody()