| File src/GcovImporter.cpp changed (mode: 100644) (index 3276d69..cc903ca) |
| ... |
... |
GcovImporter::GcovImporter(const std::string &root, |
| 198 |
198 |
it.no_push(); |
it.no_push(); |
| 199 |
199 |
continue; |
continue; |
| 200 |
200 |
} |
} |
| 201 |
|
} else if (fs::is_regular(path)) { |
|
|
201 |
|
} else if (fs::is_regular_file(path)) { |
| 202 |
202 |
// We are looking for *.gcno and not *.gcda, because they are |
// We are looking for *.gcno and not *.gcda, because they are |
| 203 |
203 |
// generated even for files that weren't executed (e.g., |
// generated even for files that weren't executed (e.g., |
| 204 |
204 |
// `main.cpp`). |
// `main.cpp`). |
| |
| ... |
... |
GcovImporter::importAsFiles(std::vector<fs::path> gcnoFiles) |
| 351 |
351 |
for (fs::recursive_directory_iterator it(tempDirPath), end; |
for (fs::recursive_directory_iterator it(tempDirPath), end; |
| 352 |
352 |
it != end; ++it) { |
it != end; ++it) { |
| 353 |
353 |
fs::path path = it->path(); |
fs::path path = it->path(); |
| 354 |
|
if (fs::is_regular(path) && |
|
|
354 |
|
if (fs::is_regular_file(path) && |
| 355 |
355 |
boost::ends_with(path.filename().string(), gcovFileExt)) { |
boost::ends_with(path.filename().string(), gcovFileExt)) { |
| 356 |
356 |
if (gcovInfo.hasJsonFormat()) { |
if (gcovInfo.hasJsonFormat()) { |
| 357 |
357 |
parseGcovJsonGz(path.string()); |
parseGcovJsonGz(path.string()); |