| 173 | } |
| 174 | |
| 175 | bool CheckAssertImpl::inSameScope(const Token* returnTok, const Token* assignTok) |
| 176 | { |
| 177 | // TODO: even if a return is in the same scope, the assignment might not affect it. |
| 178 | return returnTok->scope() == assignTok->scope(); |
| 179 | } |
| 180 | |
| 181 | void CheckAssert::runChecks(const Tokenizer &tokenizer, ErrorLogger& errorLogger) |
| 182 | { |