Skip to content
Snippets Groups Projects
Commit 24257c77 authored by Martin Wölzer's avatar Martin Wölzer
Browse files

src/include/clapp/argument.hpp: applied clang-tidy-14

parent 77e1d151
No related branches found
No related tags found
No related merge requests found
......@@ -179,12 +179,12 @@ clapp::argument::gen_arg_conf(CALLBACKS&& callbacks,
std::string restriction{std::accumulate(
arg_params.restrictions.begin(), arg_params.restrictions.end(), purpose,
[](const std::string& a, const std::string& b) -> std::string {
const std::string separator{a.length() > 0 && b.length() > 0 ? ", "
: ""};
return a + separator + b;
[](const std::string& lhs, const std::string& rhs) -> std::string {
const std::string separator{
lhs.length() > 0 && rhs.length() > 0 ? ", " : ""};
return lhs + separator + rhs;
})};
if (restriction.size() > 0) {
if (!restriction.empty()) {
restriction = " (" + restriction + ")";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment