Fixed path filtering

This commit is contained in:
Bartek Kryza
2022-12-18 17:11:14 +01:00
parent 43c3e32597
commit 5255fd1785
15 changed files with 139 additions and 57 deletions

View File

@@ -595,6 +595,11 @@ template <> struct convert<sequence_diagram> {
get_option(node, rhs.combine_free_functions_into_file_participants);
get_option(node, rhs.relative_to);
get_option(node, rhs.participants_order);
get_option(node, rhs.generate_method_arguments);
// Ensure relative_to has a value
if (!rhs.relative_to.has_value)
rhs.relative_to.set(std::filesystem::current_path());
rhs.initialize_type_aliases();
@@ -630,6 +635,9 @@ template <> struct convert<include_diagram> {
get_option(node, rhs.relative_to);
get_option(node, rhs.generate_system_headers);
if (!rhs.relative_to)
rhs.relative_to.set(std::filesystem::current_path());
// Convert the path in relative_to to an absolute path, with respect
// to the directory where the `.clang-uml` configuration file is located
if (rhs.relative_to) {