r300982 - [clang-format] Clang-tidy cleanup of CleanupTest.cpp, NFC

Krasimir Georgiev via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 21 07:21:21 PDT 2017


Author: krasimir
Date: Fri Apr 21 09:21:21 2017
New Revision: 300982

URL: http://llvm.org/viewvc/llvm-project?rev=300982&view=rev
Log:
[clang-format] Clang-tidy cleanup of CleanupTest.cpp, NFC

Modified:
    cfe/trunk/unittests/Format/CleanupTest.cpp

Modified: cfe/trunk/unittests/Format/CleanupTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/CleanupTest.cpp?rev=300982&r1=300981&r2=300982&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/CleanupTest.cpp (original)
+++ cfe/trunk/unittests/Format/CleanupTest.cpp Fri Apr 21 09:21:21 2017
@@ -292,7 +292,7 @@ protected:
   }
 
   inline std::string apply(StringRef Code,
-                           const tooling::Replacements Replaces) {
+                           const tooling::Replacements &Replaces) {
     auto CleanReplaces = cleanupAroundReplacements(Code, Replaces, Style);
     EXPECT_TRUE(static_cast<bool>(CleanReplaces))
         << llvm::toString(CleanReplaces.takeError()) << "\n";
@@ -302,8 +302,7 @@ protected:
   }
 
   inline std::string formatAndApply(StringRef Code,
-                                    const tooling::Replacements Replaces) {
-
+                                    const tooling::Replacements &Replaces) {
     auto CleanReplaces = cleanupAroundReplacements(Code, Replaces, Style);
     EXPECT_TRUE(static_cast<bool>(CleanReplaces))
         << llvm::toString(CleanReplaces.takeError()) << "\n";




More information about the cfe-commits mailing list