| 1109 | } |
| 1110 | |
| 1111 | static bool isAliased(const Token *startTok, const Token *endTok, nonneg int varid) |
| 1112 | { |
| 1113 | if (!precedes(startTok, endTok)) |
| 1114 | return false; |
| 1115 | for (const Token *tok = startTok; tok != endTok; tok = tok->next()) { |
| 1116 | if (Token::Match(tok, "= & %varid% ;", varid)) |
| 1117 | return true; |
| 1118 | if (isAliasOf(tok, varid)) |
| 1119 | return true; |
| 1120 | } |
| 1121 | return false; |
| 1122 | } |
| 1123 | |
| 1124 | bool exprDependsOnThis(const Token* expr, bool onVar, nonneg int depth) |
| 1125 | { |
no test coverage detected