summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/CommentToXML.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-10-03 18:52:48 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-10-03 18:52:48 +0000
commitd0eed3a0068c07c484845f4814ea976b9c127edd (patch)
tree41e0c5f77cdf3ec2ca6e838768dbb8527a172e2c /clang/lib/Index/CommentToXML.cpp
parente12a6bac3290c6c46239ad22c698e7a1da7b08af (diff)
downloadbcm5719-llvm-d0eed3a0068c07c484845f4814ea976b9c127edd.tar.gz
bcm5719-llvm-d0eed3a0068c07c484845f4814ea976b9c127edd.zip
Format: ArrayRefize some implicit copies away.
NFC. llvm-svn: 219000
Diffstat (limited to 'clang/lib/Index/CommentToXML.cpp')
-rw-r--r--clang/lib/Index/CommentToXML.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Index/CommentToXML.cpp b/clang/lib/Index/CommentToXML.cpp
index d1100c44e16..ef6aeefa652 100644
--- a/clang/lib/Index/CommentToXML.cpp
+++ b/clang/lib/Index/CommentToXML.cpp
@@ -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);
}
OpenPOWER on IntegriCloud