[clang-tools-extra] r272657 - [include-fixer] remove redundant code.
Eric Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 14 05:14:36 PDT 2016
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;
}
More information about the cfe-commits
mailing list