MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / ParseGoogleTestFlagsOnly

Function ParseGoogleTestFlagsOnly

tests/gtest/src/gtest.cc:6607–6620  ·  view source on GitHub ↗

Parses the command line for Google Test flags, without initializing other parts of Google Test.

Source from the content-addressed store, hash-verified

6605// Parses the command line for Google Test flags, without initializing
6606// other parts of Google Test.
6607void ParseGoogleTestFlagsOnly(int* argc, char** argv) {
6608 ParseGoogleTestFlagsOnlyImpl(argc, argv);
6609
6610 // Fix the value of *_NSGetArgc() on macOS, but if and only if
6611 // *_NSGetArgv() == argv
6612 // Only applicable to char** version of argv
6613#if GTEST_OS_MAC
6614#ifndef GTEST_OS_IOS
6615 if (*_NSGetArgv() == argv) {
6616 *_NSGetArgc() = *argc;
6617 }
6618#endif
6619#endif
6620}
6621void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv) {
6622 ParseGoogleTestFlagsOnlyImpl(argc, argv);
6623}

Callers 1

InitGoogleTestImplFunction · 0.70

Calls 1

Tested by

no test coverage detected