@@ -64,7 +64,7 @@ class DestructorFailureFlag {
6464
6565enum class GTestParamIndex : uint8_t { kTaskGetter , kNameTest , kTestParams };
6666
67- std::string GetAbsoluteTaskPath (const std::string& id_path, const std::string& relative_path);
67+ std::string GetAbsoluteTaskPath (const std::string & id_path, const std::string & relative_path);
6868int GetNumThreads ();
6969int GetNumProc ();
7070double GetTaskMaxTime ();
@@ -75,13 +75,13 @@ std::string GetNamespace() {
7575 std::string name = typeid (T).name ();
7676#ifdef __GNUC__
7777 int status = 0 ;
78- std::unique_ptr<char , void (*)(void *)> demangled{abi::__cxa_demangle (name.c_str (), nullptr , nullptr , &status),
79- std::free};
78+ std::unique_ptr<char , void (*)(void *)> demangled{abi::__cxa_demangle (name.c_str (), nullptr , nullptr , &status),
79+ std::free};
8080 name = (status == 0 ) ? demangled.get () : name;
8181#endif
8282#ifdef _MSC_VER
8383 const std::string prefixes[] = {" class " , " struct " , " enum " , " union " };
84- for (const auto & prefix : prefixes) {
84+ for (const auto & prefix : prefixes) {
8585 if (name.starts_with (prefix)) {
8686 name = name.substr (prefix.size ());
8787 break ;
@@ -107,7 +107,7 @@ namespace test {
107107 return std::isalnum (static_cast <unsigned char >(c)) || c == ' _' || c == ' -' || c == ' .' ;
108108 };
109109 std::ranges::replace (token, ' ' , ' _' );
110- for (char & ch : token) {
110+ for (char & ch : token) {
111111 if (!is_allowed (ch)) {
112112 ch = ' _' ;
113113 }
@@ -117,11 +117,11 @@ namespace test {
117117
118118class ScopedPerTestEnv {
119119 public:
120- explicit ScopedPerTestEnv (const std::string& token)
120+ explicit ScopedPerTestEnv (const std::string & token)
121121 : set_uid_(" PPC_TEST_UID" , token), set_tmp_(" PPC_TEST_TMPDIR" , CreateTmpDir(token)) {}
122122
123123 private:
124- static std::string CreateTmpDir (const std::string& token) {
124+ static std::string CreateTmpDir (const std::string & token) {
125125 namespace fs = std::filesystem;
126126 const fs::path tmp = fs::temp_directory_path () / (std::string (" ppc_test_" ) + token);
127127 std::error_code ec;
@@ -135,8 +135,8 @@ class ScopedPerTestEnv {
135135};
136136
137137[[nodiscard]] inline std::string MakeCurrentGTestToken (std::string_view fallback_name) {
138- const auto * unit = ::testing::UnitTest::GetInstance ();
139- const auto * info = (unit != nullptr ) ? unit->current_test_info () : nullptr ;
138+ const auto * unit = ::testing::UnitTest::GetInstance ();
139+ const auto * info = (unit != nullptr ) ? unit->current_test_info () : nullptr ;
140140 std::ostringstream os;
141141 if (info != nullptr ) {
142142 os << info->test_suite_name () << " ." << info->name ();
0 commit comments