Skip to content

Add macro related CodeQL queries - #417

Merged
JordyZomer merged 1 commit into
masterfrom
add-macro-queries
Aug 12, 2026
Merged

Add macro related CodeQL queries#417
JordyZomer merged 1 commit into
masterfrom
add-macro-queries

Conversation

@artmetla

Copy link
Copy Markdown
Collaborator

This PR contains a batch of CodeQL queries and helper scripts.

Add macro-locations.ql and macro-invocations.ql to extract source-tree macro
definitions and call-site locations.

Key changes:
  * Add queries/macro-locations.ql to select macro names and location spans.
  * Add queries/macro-invocations.ql to select macro invocation names and call-site
    spans.
  * Filter entities using exists(...getFile().getRelativePath()) to drop compiler
    built-ins (<built-in>), command-line defines (<command-line>), and host toolchain
    headers outside the source tree.
@artmetla
artmetla requested a review from JordyZomer August 11, 2026 17:02
@JordyZomer
JordyZomer merged commit 437e4b3 into master Aug 12, 2026
11 checks passed
@JordyZomer
JordyZomer deleted the add-macro-queries branch August 12, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants