mirror of
https://github.com/intel/llvm.git
synced 2026-02-04 11:38:04 +08:00
Simplify reversed for-loop.
llvm-svn: 171998
This commit is contained in:
@@ -106,10 +106,8 @@ def main():
|
||||
ranges.append((filename, int(match.group(1)), line_count))
|
||||
|
||||
# Reverse the ranges so that the reformatting does not influence file offsets.
|
||||
ranges.reverse()
|
||||
|
||||
# Do the actual formatting.
|
||||
for r in ranges:
|
||||
for r in reversed(ranges):
|
||||
# Do the actual formatting.
|
||||
formatRange(r, args.style)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user