Compare commits

...

3 Commits

Author SHA1 Message Date
Bartek Kryza
011d5e5fec Fixed building clanguml internal diagrams on macos (#210) 2023-12-03 23:47:19 +01:00
Bartek Kryza
4ff42d032f Fix clang-uml version detection CMake macro (#211) 2023-11-14 18:13:00 +01:00
Bartek Kryza
f3a0d98ee6 Merge pull request #209 from bkryza/add-option-to-render-diagrams-after-generation
Add option to render diagrams after generation
2023-11-13 22:42:22 +01:00
6 changed files with 9 additions and 12 deletions

View File

@@ -13,9 +13,9 @@ function(setup_git_version)
endif(GIT_EXECUTABLE) endif(GIT_EXECUTABLE)
endif(NOT DEFINED GIT_VERSION) endif(NOT DEFINED GIT_VERSION)
if(NOT DEFINED GIT_VERSION) if(NOT DEFINED GIT_VERSION OR "${GIT_VERSION}" STREQUAL "")
set(GIT_VERSION "0.0.0-unknown") set(GIT_VERSION "0.0.0-unknown")
endif(NOT DEFINED GIT_VERSION) endif(NOT DEFINED GIT_VERSION OR "${GIT_VERSION}" STREQUAL "")
string(REGEX MATCH "^([0-9]+)\\.([0-9]+)\\.(.+)" string(REGEX MATCH "^([0-9]+)\\.([0-9]+)\\.(.+)"
GIT_VERSION_MATCH ${GIT_VERSION}) GIT_VERSION_MATCH ${GIT_VERSION})
@@ -24,4 +24,4 @@ function(setup_git_version)
set(GIT_VERSION_PATCH ${CMAKE_MATCH_3} PARENT_SCOPE) set(GIT_VERSION_PATCH ${CMAKE_MATCH_3} PARENT_SCOPE)
set(GIT_VERSION ${GIT_VERSION} PARENT_SCOPE) set(GIT_VERSION ${GIT_VERSION} PARENT_SCOPE)
endfunction() endfunction()

View File

@@ -397,7 +397,6 @@ std::unique_ptr<DiagramModel> generate(const common::compilation_database &db,
/** /**
* @brief Generate a single diagram * @brief Generate a single diagram
* *
* @param od Output directory path
* @param name Name of the diagram * @param name Name of the diagram
* @param diagram Effective diagram configuration * @param diagram Effective diagram configuration
* @param db Reference to compilation database * @param db Reference to compilation database
@@ -406,7 +405,7 @@ std::unique_ptr<DiagramModel> generate(const common::compilation_database &db,
* @param verbose Log level * @param verbose Log level
* @param progress Function to report translation unit progress * @param progress Function to report translation unit progress
*/ */
void generate_diagram(const std::string &od, const std::string &name, void generate_diagram(const std::string &name,
std::shared_ptr<clanguml::config::diagram> diagram, std::shared_ptr<clanguml::config::diagram> diagram,
const common::compilation_database &db, const common::compilation_database &db,
const std::vector<std::string> &translation_units, const std::vector<std::string> &translation_units,
@@ -441,4 +440,4 @@ void generate_diagrams(const std::vector<std::string> &diagram_names,
*/ */
indicators::Color diagram_type_to_color(model::diagram_t diagram_type); indicators::Color diagram_type_to_color(model::diagram_t diagram_type);
} // namespace clanguml::common::generators } // namespace clanguml::common::generators

View File

@@ -1940,7 +1940,7 @@ void translation_unit_visitor::process_template_specialization_argument(
.getAsTemplateDecl() .getAsTemplateDecl()
->getQualifiedNameAsString(); ->getQualifiedNameAsString();
argument.set_name(nested_template_name); argument.set_type(nested_template_name);
auto nested_template_instantiation = build_template_instantiation( auto nested_template_instantiation = build_template_instantiation(
*nested_template_type, &template_instantiation); *nested_template_type, &template_instantiation);

View File

@@ -10,7 +10,6 @@ glob:
include: include:
namespaces: namespaces:
- clanguml - clanguml
- YAML
exclude: exclude:
elements: elements:
- r: "clanguml::config::option.*" - r: "clanguml::config::option.*"
@@ -21,4 +20,4 @@ exclude:
using_namespace: using_namespace:
- clanguml - clanguml
from: from:
- function: "clanguml::cli::cli_handler::handle_options(int,const char **)" - function: "clanguml::cli::cli_handler::handle_options(int,const char **)"

View File

@@ -13,4 +13,4 @@ exclude:
paths: paths:
- src/common/model/source_location.h - src/common/model/source_location.h
from: from:
- function: "clanguml::common::generators::generate_diagram(const std::string &,const std::string &,std::shared_ptr<clanguml::config::diagram>,const common::compilation_database &,const std::vector<std::string> &,const cli::runtime_config &,std::function<void ()> &&)" - function: "clanguml::common::generators::generate_diagram(const std::string &,std::shared_ptr<clanguml::config::diagram>,const common::compilation_database &,const std::vector<std::string> &,const cli::runtime_config &,std::function<void ()> &&)"

View File

@@ -8,7 +8,6 @@ glob:
include: include:
namespaces: namespaces:
- clanguml - clanguml
- YAML
exclude: exclude:
elements: elements:
- r: "clanguml::config::option.*" - r: "clanguml::config::option.*"
@@ -17,4 +16,4 @@ exclude:
using_namespace: using_namespace:
- clanguml - clanguml
from: from:
- function: "clanguml::config::load(const std::string &,std::optional<bool>,std::optional<bool>,bool)" - function: "clanguml::config::load(const std::string &,bool,std::optional<bool>,std::optional<bool>,bool)"