[cfe-commits] [clang-tools-extra] r171994 - /clang-tools-extra/trunk/clang-format/clang-format-diff.py
Daniel Jasper
djasper at google.com
Wed Jan 9 12:45:08 PST 2013
Ok, will do, thank you..
On Wed, Jan 9, 2013 at 9:41 PM, Sean Silva <silvas at purdue.edu> wrote:
> + # Reverse the ranges so that the reformatting does not influence
> file offsets.
> + ranges.reverse()
> +
> + # Do the actual formatting.
> + for r in ranges:
>
> you can simplify this to
>
> for r in reversed(ranges):
>
> -- Sean Silva
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130109/79873d4e/attachment.html>
More information about the cfe-commits
mailing list