mirror of
https://github.com/github/codeql.git
synced 2026-05-14 19:29:28 +02:00
1. Depth guard now only counts rule rewrites, not tree traversal. Deep ASTs (>100 levels) no longer trigger false "non-terminating cycle" errors. Only actual rule-rewrite chains are depth-limited. 2. Repeated matcher detects zero-width matches and breaks the loop. Patterns like ((_)?)* no longer infinite-loop — if the iterator does not advance after a successful match, the repetition stops. 3. Shorthand rule! syntax now propagates source_range to synthetic nodes via create_node_with_range, matching the full template path. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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>.