Files
codeql/swift
Paolo Tranquilli a50f3f752b Swift: move toposort in schema.py
This makes the result of code generation independent of the order
in which classes are defined in the schema, and makes additional
topological sorting not required.

Being independent from schema order will be important for reviewing the
move to a pure python schema, as generated code will be left untouched.
2022-09-21 10:49:12 +02:00
..
2022-09-21 10:49:12 +02:00
2022-09-21 10:49:12 +02:00
2022-09-16 12:59:43 +02:00
2022-04-12 12:40:59 +02:00
2022-04-28 12:01:59 +02:00
2022-05-31 10:56:28 +01:00

Warning

The Swift codeql package is an experimental and unsupported work in progress.

Usage

First ensure you have Bazel installed, for example with

brew install bazelisk

then from the ql directory run

bazel run //swift:create-extractor-pack

which will install swift/extractor-pack.

Using --search-path=swift/extractor-pack will then pick up the Swift extractor. You can also use --search-path=., as the extractor pack is mentioned in the root codeql-workspace.yml.

Notice you can run bazel run :create-extractor-pack if you already are in the swift directory.

Code generation

Run

bazel run //swift/codegen

to update generated files. This can be shortened to bazel run codegen if you are in the swift directory.