Format: ArrayRefize some implicit copies away.

NFC.

llvm-svn: 219000
This commit is contained in:
Benjamin Kramer
2014-10-03 18:52:48 +00:00
parent e12a6bac32
commit d0eed3a006
3 changed files with 13 additions and 14 deletions

View File

@@ -608,10 +608,9 @@ void CommentASTToXMLConverter::formatTextOfDeclaration(
.getLocWithOffset(0);
unsigned Length = Declaration.size();
std::vector<CharSourceRange> Ranges(
1, CharSourceRange::getCharRange(Start, Start.getLocWithOffset(Length)));
tooling::Replacements Replace = reformat(
format::getLLVMStyle(), FormatRewriterContext.Sources, ID, Ranges);
format::getLLVMStyle(), FormatRewriterContext.Sources, ID,
CharSourceRange::getCharRange(Start, Start.getLocWithOffset(Length)));
applyAllReplacements(Replace, FormatRewriterContext.Rewrite);
Declaration = FormatRewriterContext.getRewrittenText(ID);
}