| 207 | } |
| 208 | |
| 209 | bool astIsIntegral(const Token *tok, bool unknown) |
| 210 | { |
| 211 | const ValueType *vt = tok ? tok->valueType() : nullptr; |
| 212 | if (!vt) |
| 213 | return unknown; |
| 214 | return vt->isIntegral() && vt->pointer == 0U; |
| 215 | } |
| 216 | |
| 217 | bool astIsUnsigned(const Token* tok) |
| 218 | { |
no test coverage detected