| 1162 | } |
| 1163 | |
| 1164 | static Token* simplifyTypedefCopyTokens(Token* to, const Token* fromStart, const Token* toEnd, const Token* location) { |
| 1165 | Token* ret = TokenList::copyTokens(to, fromStart, toEnd); |
| 1166 | for (Token* tok = to->next(); tok != ret->next(); tok = tok->next()) { |
| 1167 | tok->linenr(location->linenr()); |
| 1168 | tok->column(location->column()); |
| 1169 | tok->isSimplifiedTypedef(true); |
| 1170 | } |
| 1171 | return ret; |
| 1172 | } |
| 1173 | |
| 1174 | static Token* simplifyTypedefInsertToken(Token* tok, const std::string& str, const Token* location) { |
| 1175 | tok = tok->insertToken(str); |
no test coverage detected