Swift: sort import list

Also fix parent tests with updated `statements.swift` file.
This commit is contained in:
Paolo Tranquilli
2022-05-31 18:22:54 +02:00
parent 3597efb728
commit bc0a32c26e
4 changed files with 336 additions and 305 deletions

View File

@@ -116,10 +116,9 @@ def generate(opts, renderer):
# for example path/to/elements -> path/to/elements.qll
include_file = stub_out.with_suffix(".qll")
all_imports = ql.ImportList([v for _, v in sorted(imports.items())])
all_imports = ql.ImportList(list(sorted(imports.values())))
renderer.render(all_imports, include_file)
print(include_file)
renderer.render(ql.GetParentImplementation(classes=classes, imports=[get_import(include_file, opts.swift_dir)]),
out / 'GetImmediateParent.qll')