Swift: QL generation script

Also added code generation to the swift checks.
This commit is contained in:
Paolo Tranquilli
2022-04-14 17:51:45 +02:00
parent cbdd4927ce
commit de0fa9e456
577 changed files with 4236 additions and 58 deletions

View File

@@ -9,10 +9,12 @@ from . import paths
def _init_options():
Option("--check", "-c", action="store_true")
Option("--verbose", "-v", action="store_true")
Option("--schema", tags=["schema"], type=pathlib.Path, default=paths.swift_dir / "codegen/schema.yml")
Option("--dbscheme", tags=["dbscheme"], type=pathlib.Path, default=paths.swift_dir / "ql/lib/swift.dbscheme")
Option("--ql-output", tags=["ql"], type=pathlib.Path, default=paths.swift_dir / "ql/lib/codeql/swift/generated")
Option("--ql-stub-output", tags=["ql"], type=pathlib.Path, default=paths.swift_dir / "ql/lib/codeql/swift/elements")
Option("--codeql-binary", tags=["ql"], default="codeql")
_options = collections.defaultdict(list)