| 428 | } |
| 429 | |
| 430 | static std::string getContainerName(const Token *containerToken) |
| 431 | { |
| 432 | if (!containerToken) |
| 433 | return std::string(); |
| 434 | std::string ret(containerToken->str()); |
| 435 | for (const Token *nametok = containerToken; nametok; nametok = nametok->tokAt(-2)) { |
| 436 | if (!Token::Match(nametok->tokAt(-2), "%name% .")) |
| 437 | break; |
| 438 | ret = nametok->strAt(-2) + '.' + ret; |
| 439 | } |
| 440 | return ret; |
| 441 | } |
| 442 | |
| 443 | static bool isVector(const Token* tok) |
| 444 | { |