Refactored template_builder to common namespace (#227)
This commit is contained in:
@@ -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 ¶meter_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
|
||||
|
||||
Reference in New Issue
Block a user