| 706 | } |
| 707 | |
| 708 | void CheckAutoVariablesImpl::checkVarLifetime() |
| 709 | { |
| 710 | logChecker("CheckAutoVariables::checkVarLifetime"); |
| 711 | const SymbolDatabase *symbolDatabase = mTokenizer->getSymbolDatabase(); |
| 712 | for (const Scope * scope : symbolDatabase->functionScopes) { |
| 713 | if (!scope->function) |
| 714 | continue; |
| 715 | checkVarLifetimeScope(scope->bodyStart, scope->bodyEnd); |
| 716 | } |
| 717 | } |
| 718 | |
| 719 | void CheckAutoVariablesImpl::errorReturnDanglingLifetime(const Token *tok, const ValueFlow::Value *val) |
| 720 | { |