Files
codeql/shared
Taus 83739f6eaf Yeast: Add shorthand rule! syntax for capture-to-field mapping
rule!(query => kind_name) is a shorthand for rules that simply gather
query captures into fields on a new node type. Each capture name
becomes a field: single captures produce single-valued fields, repeated
captures produce multi-valued fields.

    rule!((foo f: (boo (_) @blah) (_)* @blop) => bar)

is equivalent to:

    rule!((foo ...) => (bar blah: {blah} blop: {..blop}))

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-01 21:39:01 +00:00
..
2026-04-23 11:24:14 +02:00
2026-04-23 11:24:14 +02:00
2026-04-22 13:32:56 +02:00

CodeQL Shared Libraries

This folder contains shared, language-agnostic CodeQL libraries.

Libraries are organized into separate query packs, in order to allow for individual versioning. For example, the shared static single assignment (SSA) library exists in the codeql/ssa pack, which can be referenced by adding

dependencies:
  codeql/ssa: 0.0.1

to qlpack.yml.

All shared libraries will belong to a codeql/<name> pack, and live in the namespace codeql.<name>.