| 3375 | } |
| 3376 | |
| 3377 | bool Function::returnsReference(const Function* function, bool unknown, bool includeRValueRef) |
| 3378 | { |
| 3379 | return checkReturns(function, unknown, false, [includeRValueRef](const Token* /*defStart*/, const Token* defEnd) { |
| 3380 | return includeRValueRef ? Token::Match(defEnd->previous(), "&|&&") : Token::simpleMatch(defEnd->previous(), "&"); |
| 3381 | }); |
| 3382 | } |
| 3383 | |
| 3384 | bool Function::returnsPointer(const Function* function, bool unknown) |
| 3385 | { |
nothing calls this directly
no test coverage detected