| 161 | T result; |
| 162 | |
| 163 | template <typename Fn> void withLock(Fn &&fn) { |
| 164 | std::lock_guard lock(mutex); |
| 165 | fn(); |
| 166 | } |
| 167 | bool isCacheValid(const std::string &path, const std::string &line, Position position) { |
| 168 | std::lock_guard lock(mutex); |
| 169 | return this->position == position && this->path == path && |
nothing calls this directly
no outgoing calls
no test coverage detected