| 63 | //--------------------------------------------------------------------------- |
| 64 | |
| 65 | static const ValueFlow::Value *getBufferSizeValue(const Token *tok) |
| 66 | { |
| 67 | const std::list<ValueFlow::Value> &tokenValues = tok->values(); |
| 68 | const auto it = std::find_if(tokenValues.cbegin(), tokenValues.cend(), std::mem_fn(&ValueFlow::Value::isBufferSizeValue)); |
| 69 | return it == tokenValues.cend() ? nullptr : &*it; |
| 70 | } |
| 71 | |
| 72 | static const Token* getRealBufferTok(const Token* tok) { |
| 73 | if (!tok->isUnaryOp("&")) |
no outgoing calls
no test coverage detected