@@ -96,7 +96,7 @@ TEST(ToolChainTest, VFSGCCInstallation) {
9696 C->getDefaultToolChain ().printVerboseInfo (OS);
9797 }
9898 if (is_style_windows (llvm::sys::path::Style::native))
99- std ::replace (S. begin (), S. end () , ' \\ ' , ' /' );
99+ llvm ::replace (S, ' \\ ' , ' /' );
100100 EXPECT_EQ (
101101 " Found candidate GCC installation: "
102102 " /usr/lib/gcc/arm-linux-gnueabihf/4.6.3\n "
@@ -120,7 +120,7 @@ TEST(ToolChainTest, VFSGCCInstallation) {
120120 C->getDefaultToolChain ().printVerboseInfo (OS);
121121 }
122122 if (is_style_windows (llvm::sys::path::Style::native))
123- std ::replace (S. begin (), S. end () , ' \\ ' , ' /' );
123+ llvm ::replace (S, ' \\ ' , ' /' );
124124 // Test that 4.5.3 from --sysroot is not overridden by 4.6.3 (larger
125125 // version) from /usr.
126126 EXPECT_EQ (" Found candidate GCC installation: "
@@ -162,7 +162,7 @@ TEST(ToolChainTest, VFSGCCInstallationRelativeDir) {
162162 C->getDefaultToolChain ().printVerboseInfo (OS);
163163 }
164164 if (is_style_windows (llvm::sys::path::Style::native))
165- std ::replace (S. begin (), S. end () , ' \\ ' , ' /' );
165+ llvm ::replace (S, ' \\ ' , ' /' );
166166 EXPECT_EQ (" Found candidate GCC installation: "
167167 " /home/test/bin/../lib/gcc/arm-linux-gnueabi/4.6.1\n "
168168 " Selected GCC installation: "
@@ -213,7 +213,7 @@ TEST(ToolChainTest, VFSSolarisMultiGCCInstallation) {
213213 C->getDefaultToolChain ().printVerboseInfo (OS);
214214 }
215215 if (is_style_windows (llvm::sys::path::Style::native))
216- std ::replace (S. begin (), S. end () , ' \\ ' , ' /' );
216+ llvm ::replace (S, ' \\ ' , ' /' );
217217 EXPECT_EQ (" Found candidate GCC installation: "
218218 " /usr/gcc/11/lib/gcc/x86_64-pc-solaris2.11/11.4.0\n "
219219 " Selected GCC installation: "
@@ -237,7 +237,7 @@ TEST(ToolChainTest, VFSSolarisMultiGCCInstallation) {
237237 C->getDefaultToolChain ().printVerboseInfo (OS);
238238 }
239239 if (is_style_windows (llvm::sys::path::Style::native))
240- std ::replace (S. begin (), S. end () , ' \\ ' , ' /' );
240+ llvm ::replace (S, ' \\ ' , ' /' );
241241 EXPECT_EQ (" Found candidate GCC installation: "
242242 " /usr/gcc/11/lib/gcc/x86_64-pc-solaris2.11/11.4.0\n "
243243 " Selected GCC installation: "
@@ -261,7 +261,7 @@ TEST(ToolChainTest, VFSSolarisMultiGCCInstallation) {
261261 C->getDefaultToolChain ().printVerboseInfo (OS);
262262 }
263263 if (is_style_windows (llvm::sys::path::Style::native))
264- std ::replace (S. begin (), S. end () , ' \\ ' , ' /' );
264+ llvm ::replace (S, ' \\ ' , ' /' );
265265 EXPECT_EQ (" Found candidate GCC installation: "
266266 " /usr/gcc/11/lib/gcc/x86_64-pc-solaris2.11/11.4.0\n "
267267 " Selected GCC installation: "
@@ -285,7 +285,7 @@ TEST(ToolChainTest, VFSSolarisMultiGCCInstallation) {
285285 C->getDefaultToolChain ().printVerboseInfo (OS);
286286 }
287287 if (is_style_windows (llvm::sys::path::Style::native))
288- std ::replace (S. begin (), S. end () , ' \\ ' , ' /' );
288+ llvm ::replace (S, ' \\ ' , ' /' );
289289 EXPECT_EQ (" Found candidate GCC installation: "
290290 " /usr/gcc/11/lib/gcc/sparcv9-sun-solaris2.11/11.4.0\n "
291291 " Selected GCC installation: "
@@ -308,7 +308,7 @@ TEST(ToolChainTest, VFSSolarisMultiGCCInstallation) {
308308 C->getDefaultToolChain ().printVerboseInfo (OS);
309309 }
310310 if (is_style_windows (llvm::sys::path::Style::native))
311- std ::replace (S. begin (), S. end () , ' \\ ' , ' /' );
311+ llvm ::replace (S, ' \\ ' , ' /' );
312312 EXPECT_EQ (" Found candidate GCC installation: "
313313 " /usr/gcc/11/lib/gcc/sparcv9-sun-solaris2.11/11.4.0\n "
314314 " Selected GCC installation: "
@@ -329,7 +329,7 @@ MATCHER_P(jobHasArgs, Substr, "") {
329329 Args += Arg;
330330 }
331331 if (is_style_windows (llvm::sys::path::Style::native))
332- std ::replace (Args. begin (), Args. end () , ' \\ ' , ' /' );
332+ llvm ::replace (Args, ' \\ ' , ' /' );
333333 if (llvm::StringRef (Args).contains (Substr))
334334 return true ;
335335 *result_listener << " whose args are '" << Args << " '" ;
0 commit comments