| 1878 | const Settings &settings); |
| 1879 | |
| 1880 | static bool isRangeForScope(const Scope* scope) |
| 1881 | { |
| 1882 | if (!scope) |
| 1883 | return false; |
| 1884 | if (scope->type != ScopeType::eFor) |
| 1885 | return false; |
| 1886 | if (!scope->bodyStart) |
| 1887 | return false; |
| 1888 | if (!Token::simpleMatch(scope->bodyStart->previous(), ") {")) |
| 1889 | return false; |
| 1890 | return Token::simpleMatch(scope->bodyStart->linkAt(-1)->astOperand2(), ":"); |
| 1891 | } |
| 1892 | |
| 1893 | static const Token* getEndOfVarScope(const Variable* var) |
| 1894 | { |
no test coverage detected