MCPcopy Create free account
hub / github.com/apache/thrift / argsToVector

Function argsToVector

compiler/cpp/tests/catch/catch.hpp:4571–4577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4569 } // namespace Detail
4570
4571 inline std::vector<std::string> argsToVector( int argc, char const* const* const argv ) {
4572 std::vector<std::string> args( static_cast<std::size_t>( argc ) );
4573 for( std::size_t i = 0; i < static_cast<std::size_t>( argc ); ++i )
4574 args[i] = argv[i];
4575
4576 return args;
4577 }
4578
4579 class Parser {
4580 enum Mode { None, MaybeShortOpt, SlashOpt, ShortOpt, LongOpt, Positional };

Callers 1

applyCommandLineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected