[cfe-commits] [clang-tools-extra] r171994 - /clang-tools-extra/trunk/clang-format/clang-format-diff.py

Sean Silva silvas at purdue.edu
Wed Jan 9 12:41:25 PST 2013


+  # 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



More information about the cfe-commits mailing list