Author: ioeric Date: Tue Jun 14 07:14:36 2016 New Revision: 272657 URL: http://llvm.org/viewvc/llvm-project?rev=272657&view=rev Log: [include-fixer] remove redundant code.
Modified: clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp Modified: clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp?rev=272657&r1=272656&r2=272657&view=diff ============================================================================== --- clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp (original) +++ clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp Tue Jun 14 07:14:36 2016 @@ -211,9 +211,8 @@ int includeFixerMain(int argc, const cha tooling::Replacements Replacements = clang::include_fixer::createInsertHeaderReplacements( Code->getBuffer(), FilePath, Context.Headers[0], InsertStyle); - tooling::Replacements Replaces(Replacements.begin(), Replacements.end()); std::string ChangedCode = - tooling::applyAllReplacements(Code->getBuffer(), Replaces); + tooling::applyAllReplacements(Code->getBuffer(), Replacements); llvm::outs() << ChangedCode; return 0; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits