Improved translation unit glob matching in configuration files (#62)

This commit is contained in:
Bartek Kryza
2022-12-16 23:30:03 +01:00
parent 35554a2ec0
commit 3f314e0cf3
2 changed files with 128 additions and 35 deletions

View File

@@ -125,7 +125,8 @@ std::vector<std::string> diagram::get_translation_units(
for (const auto &g : glob()) {
const auto matches = glob::glob(g, root_directory);
for (const auto &match : matches) {
const auto path = root_directory / match;
const auto path =
std::filesystem::canonical(root_directory / match);
translation_units.emplace_back(path.string());
}
}