From: Krasimir Georgiev Date: Fri, 21 Apr 2017 14:21:21 +0000 (+0000) Subject: [clang-format] Clang-tidy cleanup of CleanupTest.cpp, NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72e24267997f3cfdbd2be3070ad1637e889993ee;p=clang [clang-format] Clang-tidy cleanup of CleanupTest.cpp, NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300982 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Format/CleanupTest.cpp b/unittests/Format/CleanupTest.cpp index 6ac5f695d4..e554a81912 100644 --- a/unittests/Format/CleanupTest.cpp +++ b/unittests/Format/CleanupTest.cpp @@ -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(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(CleanReplaces)) << llvm::toString(CleanReplaces.takeError()) << "\n";