Added generate_message_comments configuration option
This commit is contained in:
@@ -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>>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user