Skip to content

Commit ee7bb66

Browse files
style: pre-commit.ci fixes
1 parent c5199d0 commit ee7bb66

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

include/CLI/TypeTools.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,16 @@ template <typename T, typename C> class is_direct_constructible {
166166
#pragma diag_suppress 2361
167167
#endif
168168
#endif
169-
TT{std::declval<CC>()}
169+
TT{std::declval<CC>()}
170170
#ifdef __CUDACC__
171171
#ifdef __NVCC_DIAG_PRAGMA_SUPPORT__
172172
#pragma nv_diag_default 2361
173173
#else
174174
#pragma diag_default 2361
175175
#endif
176176
#endif
177-
,
178-
std::is_move_assignable<TT>());
177+
,
178+
std::is_move_assignable<TT>());
179179

180180
template <typename TT, typename CC> static auto test(int, std::false_type) -> std::false_type;
181181

include/CLI/impl/App_inl.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ App::set_version_flag(std::string flag_name, std::function<std::string()> vfunc,
279279

280280
// Empty name will simply remove the version flag
281281
if(!flag_name.empty()) {
282-
version_ptr_ = add_flag_callback(
283-
flag_name, [vfunc]() { throw(CLI::CallForVersion(vfunc(), 0)); }, version_help);
282+
version_ptr_ =
283+
add_flag_callback(flag_name, [vfunc]() { throw(CLI::CallForVersion(vfunc(), 0)); }, version_help);
284284
version_ptr_->configurable(false);
285285
}
286286

tests/HelpTest.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1308,8 +1308,7 @@ TEST_CASE("TVersion: help", "[help]") {
13081308
auto hvers = app.help();
13091309
CHECK_THAT(hvers, Contains("help_for_version"));
13101310

1311-
app.set_version_flag(
1312-
"-v", []() { return std::string("VERSION2 " CLI11_VERSION); }, "help_for_version2");
1311+
app.set_version_flag("-v", []() { return std::string("VERSION2 " CLI11_VERSION); }, "help_for_version2");
13131312
hvers = app.help();
13141313
CHECK_THAT(hvers, Contains("help_for_version2"));
13151314
}

tests/HelpersTest.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -1058,11 +1058,8 @@ TEST_CASE("RegEx: SplittingNew", "[helpers]") {
10581058
CHECK_THROWS_AS([&]() { std::tie(shorts, longs, pname) = CLI::detail::get_names({"-hi"}); }(), CLI::BadNameString);
10591059
CHECK_THROWS_AS([&]() { std::tie(shorts, longs, pname) = CLI::detail::get_names({"---hi"}); }(),
10601060
CLI::BadNameString);
1061-
CHECK_THROWS_AS(
1062-
[&]() {
1063-
std::tie(shorts, longs, pname) = CLI::detail::get_names({"one", "two"});
1064-
}(),
1065-
CLI::BadNameString);
1061+
CHECK_THROWS_AS([&]() { std::tie(shorts, longs, pname) = CLI::detail::get_names({"one", "two"}); }(),
1062+
CLI::BadNameString);
10661063
}
10671064

10681065
TEST_CASE("String: ToLower", "[helpers]") { CHECK("one and two" == CLI::detail::to_lower("one And TWO")); }

0 commit comments

Comments
 (0)