r181997 - Add a more convenient interface to use clang-format.

Jordan Rose jordan_rose at apple.com
Thu May 16 09:43:19 PDT 2013


On May 16, 2013, at 3:40 , Daniel Jasper <djasper at google.com> wrote:

> +/// \brief Reformats the given \p Ranges in \p Code.
> +///
> +/// Otherwise identical to the reformat() function consuming a \c Lexer.
> +tooling::Replacements reformat(const FormatStyle &Style, StringRef Code,
> +                               std::vector<tooling::Range> Ranges,
> +                               StringRef FileName = "<stdin>");

Why copy all the ranges instead of using ArrayRef?

Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130516/d6936a85/attachment.html>


More information about the cfe-commits mailing list