C++ 通过引用进行GoogleTest初始化

C++ 通过引用进行GoogleTest初始化,c++,googletest,C++,Googletest,GoogleTest使用引用作为参数计数的原因是什么 testing::InitGoogleTest(&argc, argv); (我的意思是:据我所知,这是一个输入参数,没有区别 是否提供值或地址)请参阅 看 // Initializes Google Test. This must be called before calling // RUN_ALL_TESTS(). In particular, it parses a command line for the // f

GoogleTest使用引用作为参数计数的原因是什么

  testing::InitGoogleTest(&argc, argv);
(我的意思是:据我所知,这是一个输入参数,没有区别 是否提供值或地址)

请参阅

// Initializes Google Test.  This must be called before calling
// RUN_ALL_TESTS().  In particular, it parses a command line for the
// flags that Google Test recognizes.  Whenever a Google Test flag is
// seen, it is removed from argv, and *argc is decremented.