| 358 | } |
| 359 | |
| 360 | std::optional<QString> ApiWrap::LoadedFileCache::find( |
| 361 | const Location &location) const { |
| 362 | if (!location) { |
| 363 | return std::nullopt; |
| 364 | } |
| 365 | const auto key = ComputeLocationKey(location); |
| 366 | if (const auto i = _map.find(key); i != end(_map)) { |
| 367 | return i->second; |
| 368 | } |
| 369 | return std::nullopt; |
| 370 | } |
| 371 | |
| 372 | ApiWrap::FileProcess::FileProcess(const QString &path, Output::Stats *stats) |
| 373 | : file(path, stats) { |
no test coverage detected