codeql/swift
Anders Schack-Mulligen a3fb54c9de
Merge pull request #10007 from aschackmull/dataflow/source-node-identity
Dataflow: Fix identification of source PathNodes in the presence of source-to-source flow
2022-08-15 10:39:17 +02:00
..
codegen Swift: extract comments 2022-08-05 11:50:48 +02:00
extractor Swift: extract comments 2022-08-05 11:50:48 +02:00
integration-tests Swift: extract precompiled swiftmodule files 2022-07-29 11:10:03 +02:00
ql Merge pull request #10007 from aschackmull/dataflow/source-node-identity 2022-08-15 10:39:17 +02:00
tools
.clang-format
.gitignore
BUILD.bazel
README.md
codeql-extractor.yml
rules.bzl

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.