Fixed handling of multiple dimension arrays in class fields (#278)

This commit is contained in:
Bartek Kryza
2024-06-01 18:47:27 +02:00
parent d599bb6715
commit ff7edef585
10 changed files with 139 additions and 13 deletions

View File

@@ -324,4 +324,12 @@ bool is_struct(const clang::NamedDecl *decl);
*/
bool has_attr(const clang::FunctionDecl *decl, clang::attr::Kind function_attr);
/**
* If `type` is a constant array, return it's number of elements. Otherwise
* nothing.
*
* @param type
* @return Number of elements in the array.
*/
std::optional<size_t> get_array_size(const clang::ArrayType &type);
} // namespace clanguml::common