mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
* made `members` children of an `IterableDeclContext` * removed `elements` from the children of `EnumCaseDecl`, as they are already children of the enclosing `EnumDecl` * removed `base` from the children of `SelfApplyExpr`, as they currently are already descendants via `getArgument(0).getExpr()`. We should maybe consider either removing `base` from the schema and add it as a shortcut on QL, or finish up replacing all `SelfApplyExpr` instances with synthesized types.
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.