Added is_system header file property to JSON include diagram generator

This commit is contained in:
Bartek Kryza
2024-01-09 22:13:39 +01:00
parent 043c13affb
commit 66dcf1ed5d
5 changed files with 37 additions and 3 deletions

View File

@@ -117,6 +117,20 @@ public:
*/
source_file_t type() const { return type_; }
/**
* Set whether the file is a system header
*
* @param is_system Whether the file is a system header
*/
void set_system_header(bool is_system) { is_system_header_ = is_system; }
/**
* Is the file a system header?
*
* @return True, if the source file is a system header
*/
bool is_system_header() const { return is_system_header_; }
/**
* Get the source file's parent path.
*
@@ -185,6 +199,7 @@ private:
filesystem_path path_{path_type::kFilesystem};
source_file_t type_{source_file_t::kDirectory};
bool is_absolute_{false};
bool is_system_header_{false};
};
} // namespace clanguml::common::model