| 2220 | } |
| 2221 | |
| 2222 | static bool isConstant(const Token* tok) { |
| 2223 | return tok && (tok->isEnumerator() || Token::Match(tok, "%bool%|%num%|%str%|%char%|nullptr|NULL")); |
| 2224 | } |
| 2225 | |
| 2226 | static bool isConstStatement(const Token *tok, const Library& library, bool platformIndependent, bool isNestedBracket = false) |
| 2227 | { |
no outgoing calls
no test coverage detected