| 1491 | } |
| 1492 | |
| 1493 | unsigned int simplecpp::TokenList::fileIndex(const std::string &filename) |
| 1494 | { |
| 1495 | for (unsigned int i = 0; i < files.size(); ++i) { |
| 1496 | if (files[i] == filename) |
| 1497 | return i; |
| 1498 | } |
| 1499 | files.emplace_back(filename); |
| 1500 | return files.size() - 1U; |
| 1501 | } |
| 1502 | |
| 1503 | const std::string& simplecpp::TokenList::file(const Location& loc) const |
| 1504 | { |
no test coverage detected