| 261 | |
| 262 | if (_parseMapsLine(line, ®ion)) |
| 263 | { |
| 264 | if (!cachedRegions_.empty() && cachedRegions_.back().canMergeWith(region)) |
| 265 | { |
| 266 | cachedRegions_.back().end = region.end; |
| 267 | } |
| 268 | else |
| 269 | { |
| 270 | cachedRegions_.emplace_back(region); |
| 271 | } |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | fclose(fp); |
| 276 | |
| 277 | if (!cachedRegions_.empty()) |
| 278 | { |
| 279 | std::sort(cachedRegions_.begin(), cachedRegions_.end(), [](const RegionInfo &a, const RegionInfo &b) { |
| 280 | return a.start < b.start; |
| 281 | }); |
| 282 | } |
| 283 | } |
| 284 |
nothing calls this directly
no test coverage detected