codeql/swift
Robert Marsh 84518c8d54
Merge pull request #9404 from MathiasVP/swift-get-enclosing-function
Swift: Add `getEnclosingFunction` to `AstNode`
2022-06-13 09:37:51 -04:00
..
codegen Swift: correct typo 2022-06-03 08:45:59 +02:00
extractor Merge pull request #9430 from github/redsun82/swift-unknown-location 2022-06-13 10:55:53 +02:00
integration-tests Swift: do not keep trap files for tests 2022-05-24 11:48:45 +02:00
ql Merge pull request #9404 from MathiasVP/swift-get-enclosing-function 2022-06-13 09:37:51 -04:00
tools Swift: build x86_64 on arm64 macOS 2022-06-08 10:25:38 +02:00
.clang-format Swift: first skeleton extractor 2022-04-12 12:40:59 +02:00
.gitignore Swift: added trapgen 2022-04-28 12:01:59 +02:00
BUILD.bazel Swift: merge `codegen` and `cppcodegen` 2022-06-01 17:07:52 +02:00
README.md Update Swift readme 2022-05-31 10:56:28 +01:00
codeql-extractor.yml Swift: first skeleton extractor 2022-04-12 12:40:59 +02:00
rules.bzl Swift: build x86_64 on arm64 macOS 2022-06-08 10:25:38 +02:00

README.md

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.