Added generate_message_comments configuration option

This commit is contained in:
Bartek Kryza
2023-10-15 19:59:06 +02:00
parent c4d3d61770
commit 03e8c867f4
14 changed files with 127 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
compilation_database_dir: ..
output_directory: diagrams
add_compile_flags:
- -fparse-all-comments
diagrams:
t20029_sequence:
type: sequence
@@ -15,6 +17,7 @@ diagrams:
- clanguml::t20029
from:
- function: clanguml::t20029::tmain()
generate_message_comments: true
participants_order:
- clanguml::t20029::tmain()
- clanguml::t20029::Encoder<clanguml::t20029::Retrier<clanguml::t20029::ConnectionPool>>

View File

@@ -56,8 +56,10 @@ int tmain()
{
auto pool = std::make_shared<Encoder<Retrier<ConnectionPool>>>();
// Establish connection to the remote server synchronously
pool->connect();
// Repeat for each line in the input stream
for (std::string line; std::getline(std::cin, line);) {
if (!pool->send(std::move(line)))
break;

View File

@@ -46,6 +46,11 @@ load_config(const std::string &test_name)
LOG_DBG("Loading compilation database from {}",
res.first.compilation_database_dir());
std::vector<std::string> remove_compile_flags{
std::string{"-Wno-class-memaccess"}};
res.first.remove_compile_flags.set(remove_compile_flags);
res.second =
clanguml::common::compilation_database::auto_detect_from_directory(
res.first);