Added clang-format target
This commit is contained in:
@@ -28,4 +28,3 @@ config load(const std::string &config_file)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -261,4 +261,3 @@ template <> struct convert<config> {
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ compilation_database::compilation_database(CXCompilationDatabase &&d)
|
||||
|
||||
compilation_database::~compilation_database()
|
||||
{
|
||||
//clang_CompilationDatabase_dispose(m_database);
|
||||
// clang_CompilationDatabase_dispose(m_database);
|
||||
}
|
||||
|
||||
compilation_database::compilation_database(compilation_database &&d)
|
||||
|
||||
@@ -38,8 +38,7 @@ public:
|
||||
|
||||
CXIndex &index();
|
||||
|
||||
CXTranslationUnit parse_translation_unit(
|
||||
const std::string &path);
|
||||
CXTranslationUnit parse_translation_unit(const std::string &path);
|
||||
|
||||
static compilation_database from_directory(const std::string &dir);
|
||||
|
||||
|
||||
@@ -70,7 +70,8 @@ int main(int argc, const char *argv[])
|
||||
spdlog::info("Loading compilation database from {} directory",
|
||||
config.compilation_database_dir);
|
||||
|
||||
auto db = compilation_database::from_directory(config.compilation_database_dir);
|
||||
auto db =
|
||||
compilation_database::from_directory(config.compilation_database_dir);
|
||||
|
||||
for (const auto &[name, diagram] : config.diagrams) {
|
||||
using clanguml::config::class_diagram;
|
||||
|
||||
@@ -115,7 +115,8 @@ public:
|
||||
// only add UML relationships to classes in the diagram
|
||||
if (m_config.has_class(r.destination))
|
||||
ostr << c.name << " " << to_string(r.type) << " "
|
||||
<< namespace_relative(m_config.using_namespace, r.destination)
|
||||
<< namespace_relative(
|
||||
m_config.using_namespace, r.destination)
|
||||
<< " : " << r.label << std::endl;
|
||||
}
|
||||
}
|
||||
@@ -211,4 +212,3 @@ clanguml::model::class_diagram::diagram generate(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -188,4 +188,3 @@ clanguml::model::sequence_diagram::diagram generate(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ struct diagram {
|
||||
bool started{false};
|
||||
std::string name;
|
||||
|
||||
//std::map<std::string, activity> sequences;
|
||||
// std::map<std::string, activity> sequences;
|
||||
std::map<std::string, activity> sequences;
|
||||
|
||||
void sort()
|
||||
|
||||
@@ -27,7 +27,7 @@ std::string namespace_relative(
|
||||
const std::vector<std::string> &namespaces, const std::string &n)
|
||||
{
|
||||
for (const auto &ns : namespaces) {
|
||||
if(ns.empty())
|
||||
if (ns.empty())
|
||||
continue;
|
||||
|
||||
if (n == ns)
|
||||
|
||||
Reference in New Issue
Block a user