Refactored template_builder to common namespace (#227)

This commit is contained in:
Bartek Kryza
2024-01-14 13:38:08 +01:00
parent 100f7c88ad
commit 16195bfa62
18 changed files with 545 additions and 359 deletions

View File

@@ -17,9 +17,11 @@
*/
#pragma once
// #include "class_diagram/model/diagram.h"
#include "common/model/enums.h"
#include "common/model/namespace.h"
#include "common/model/template_parameter.h"
#include "config/config.h"
#include "types.h"
#include "util/util.h"
@@ -153,6 +155,9 @@ std::string get_source_text(
std::tuple<unsigned int, unsigned int, std::string>
extract_template_parameter_index(const std::string &type_parameter);
void ensure_lambda_type_is_relative(
const config::diagram &config, std::string &parameter_type);
/**
* @brief Check if an expression is contained in another expression
*
@@ -303,4 +308,12 @@ clang::RawComment *get_expression_raw_comment(const clang::SourceManager &sm,
*/
bool is_coroutine(const clang::FunctionDecl &decl);
/**
* Check if named declaration is a C++ struct.
*
* @param decl Declaration to check
* @return True, if declaration represents a struct.
*/
bool is_struct(const clang::NamedDecl *decl);
} // namespace clanguml::common