Skip to content

Conversation

@ginsbach
Copy link
Contributor

Adds public-facing documentation for overlay annotations to the QL language reference and specification. These annotations control predicate behavior during overlay evaluation, a feature for incremental analysis used primarily by GitHub Code Scanning for pull request analysis.

Changes

  • annotations.rst: New "Overlay annotations" section documenting all six annotations (overlay[local], overlay[local?], overlay[global], overlay[caller], overlay[caller?], overlay[discard_entity]) with descriptions, examples, and troubleshooting for common compilation errors
  • ql-language-specification.rst: Added overlay to grammar and applicability table

Motivation

When overlay compilation is enabled for a QL pack, developers may encounter compilation errors related to overlay constraints. This documentation helps QL developers understand what the annotations mean and resolve errors in custom libraries.

@ginsbach ginsbach force-pushed the ginsbach/OverlayDocumentation branch 3 times, most recently from 5edf815 to ef4eb11 Compare January 19, 2026 11:41
@ginsbach ginsbach force-pushed the ginsbach/OverlayDocumentation branch from ef4eb11 to 4e478c3 Compare January 19, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants