Fix diagram generation using LLVM 17 (Fixes #190)

This commit is contained in:
Bartek Kryza
2023-10-13 18:46:30 +02:00
parent e7d6c94a14
commit a7b4efa80e
4 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
compilation_database_dir: debug
output_directory: docs/diagrams
comment_parser: clang
remove_compile_flags:
- -Wno-class-memaccess
generate_links:
link: "{% if existsIn(element, \"doxygen_link\") %}{{ element.doxygen_link }}{% endif %}"
tooltip: "{% if existsIn(element, \"comment\") and existsIn(element.comment, \"brief\") %}{{ abbrv(trim(replace(element.comment.brief.0, \"\\n+\", \" \")), 256) }}{% else %}{{ element.name }}{% endif %}"

View File

@@ -137,7 +137,9 @@ endif()
# and environment quirks
#
if(LLVM_VERSION_MAJOR GREATER_EQUAL 17)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(CUSTOM_COMPILE_OPTIONS "-Wno-class-memaccess")
endif()
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(CUSTOM_COMPILE_OPTIONS

View File

@@ -504,8 +504,6 @@ private:
/*! Whether template argument is ellipsis (...) */
bool is_ellipsis_{false};
bool is_noexcept_{false};
/*! Whether the template parameter is variadic */
bool is_variadic_{false};

View File

@@ -328,8 +328,6 @@ private:
return block_end_types.count(mt) > 0;
};
bool started_{false};
std::map<common::model::diagram_element::id_t, activity> sequences_;
std::map<common::model::diagram_element::id_t, std::unique_ptr<participant>>