diff options
| author | Martin Hořeňovský | 2026-02-10 14:31:30 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2026-02-13 21:16:03 +0100 |
| commit | 120827d4d616d4aa024dbe8d0eeba8089bcba80c (patch) | |
| tree | 55970876ed3e93a292d6da322c8932813f63bead /src/catch2 | |
| parent | daadf42a0e21ac09abc1f286f875078b24e2dd4d (diff) | |
| download | catch3-120827d4d616d4aa024dbe8d0eeba8089bcba80c.tar.gz | |
Fix formatting in catch_commandline.cpp
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/internal/catch_commandline.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/catch2/internal/catch_commandline.cpp b/src/catch2/internal/catch_commandline.cpp index 61825df9..34bda5e2 100644 --- a/src/catch2/internal/catch_commandline.cpp +++ b/src/catch2/internal/catch_commandline.cpp @@ -193,18 +193,18 @@ namespace Catch { return ParserResult::ok( ParseResultType::Matched ); }; auto const setBenchmarkSamples = [&]( std::string const& samples ) { - auto parsedSamples = parseUInt( samples ); - if ( !parsedSamples ) { - return ParserResult::runtimeError( - "Could not parse '" + samples + "' as benchmark samples" ); - } - if ( *parsedSamples == 0 ) { - return ParserResult::runtimeError( - "Benchmark samples must be greater than 0" ); - } - config.benchmarkSamples = *parsedSamples; - return ParserResult::ok( ParseResultType::Matched ); - }; + auto parsedSamples = parseUInt( samples ); + if ( !parsedSamples ) { + return ParserResult::runtimeError( + "Could not parse '" + samples + "' as benchmark samples" ); + } + if ( *parsedSamples == 0 ) { + return ParserResult::runtimeError( + "Benchmark samples must be greater than 0" ); + } + config.benchmarkSamples = *parsedSamples; + return ParserResult::ok( ParseResultType::Matched ); + }; auto const setShardIndex = [&](std::string const& shardIndex) { auto parsedIndex = parseUInt( shardIndex ); |