mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 03:43:28 +01:00
Scoped parseInfos population so i
can be reused
This commit is contained in:
parent
c1416d55cb
commit
5fe19f73e7
9
include/external/clara.hpp
vendored
9
include/external/clara.hpp
vendored
@ -1145,9 +1145,12 @@ namespace detail {
|
||||
assert( totalParsers < 512 );
|
||||
// ParserInfo parseInfos[totalParsers]; // <-- this is what we really want to do
|
||||
ParserInfo parseInfos[512];
|
||||
size_t i = 0;
|
||||
for( auto const& opt : m_options ) parseInfos[i++].parser = &opt;
|
||||
for( auto const& arg : m_args ) parseInfos[i++].parser = &arg;
|
||||
|
||||
{
|
||||
size_t i = 0;
|
||||
for (auto const &opt : m_options) parseInfos[i++].parser = &opt;
|
||||
for (auto const &arg : m_args) parseInfos[i++].parser = &arg;
|
||||
}
|
||||
|
||||
m_exeName.set( exeName );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user