mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[gardening] Fix violations of non-controversial PEP8 rules
Fixes:
* multiple statements on one line (colon) (E701)
* missing whitespace around arithmetic operator (E226)
* missing whitespace around operator (E225)
* closing bracket does not match visual indentation (E124)
* blank line contains whitespace (W293)
* continuation line missing indentation or outdented (E122)
* continuation line over-indented for hanging indent (E126)
* missing expected blank line (E301)
* trailing whitespace (W291)
* unexpected spaces around keyword / parameter equals (E251)
* whitespace after '(', '[' or '{' (E201)
* whitespace before ')', ']' or '}' (E202)
* whitespace before ',' or ':' (E203)
This commit is contained in:
@@ -98,7 +98,7 @@ def lower_passlist():
|
||||
p.SpeculativeDevirtualizer,
|
||||
p.FunctionSignatureOpts,
|
||||
])
|
||||
|
||||
|
||||
def normal_passpipelines():
|
||||
result = []
|
||||
|
||||
@@ -106,23 +106,23 @@ def normal_passpipelines():
|
||||
x.addPass(ssapass_passlist('high'))
|
||||
result.append(x)
|
||||
|
||||
x = ppipe.PassPipeline('EarlyLoopOpt', {'name' : 'run_n_times', 'count' : 1})
|
||||
x = ppipe.PassPipeline('EarlyLoopOpt', {'name': 'run_n_times', 'count': 1})
|
||||
x.addPass(highlevel_loopopt_passlist())
|
||||
result.append(x)
|
||||
|
||||
x = ppipe.PassPipeline('MidLevelOpt', {'name' : 'run_n_times', 'count' : 2})
|
||||
x = ppipe.PassPipeline('MidLevelOpt', {'name': 'run_n_times', 'count': 2})
|
||||
x.addPass(ssapass_passlist('mid'))
|
||||
result.append(x)
|
||||
|
||||
x = ppipe.PassPipeline('Lower', {'name' : 'run_to_fixed_point'})
|
||||
x = ppipe.PassPipeline('Lower', {'name': 'run_to_fixed_point'})
|
||||
x.addPass(lower_passlist())
|
||||
result.append(x)
|
||||
|
||||
x = ppipe.PassPipeline('LowLevel', {'name' : 'run_n_times', 'count' : 1})
|
||||
x = ppipe.PassPipeline('LowLevel', {'name': 'run_n_times', 'count': 1})
|
||||
x.addPass(ssapass_passlist('low'))
|
||||
result.append(x)
|
||||
|
||||
x = ppipe.PassPipeline('LateLoopOpt', {'name' : 'run_n_times', 'count' : 1})
|
||||
x = ppipe.PassPipeline('LateLoopOpt', {'name': 'run_n_times', 'count': 1})
|
||||
x.addPass([lowlevel_loopopt_passlist(), p.DeadFunctionElimination])
|
||||
result.append(x)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user