Skip to content

Go: un-deprecate ParenExpr - #22650

Merged
owen-mc merged 3 commits into
github:mainfrom
owen-mc:go/undeprecate-parenexpr
Sep 22, 2026
Merged

owen-mc merged 3 commits into
github:mainfrom
owen-mc:go/undeprecate-parenexpr

Conversation

@owen-mc

@owen-mc owen-mc commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

This PR is failing the "Go Compile Queries" CI check because it introduces a use of the deprecated class ParenExpr. Although that class is deprecated, and we no longer create any instances of it with newer versions of the extractor, there wasn't actually a dbscheme change or any upgrade script to remove ParenExpr from databases. The solution is to un-deprecate that class (but keep a note in the QLDoc that it isn't being extracted any more), so that it can still be used without causing CI failure. In a year's time, when databases containing ParenExpr are going to be a lot less common, we can deprecate that class, change its definition to be empty, remove all references to it and remove it from the dbscheme.

Copilot AI balanced review requested due to automatic review settings September 22, 2026 13:10
@owen-mc
owen-mc requested a review from a team as a code owner September 22, 2026 13:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The compatibility fix is correct; only a minor documentation grammar issue remains.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Restores ParenExpr for compatibility with older Go databases while documenting that newer extractors omit it.

Changes:

  • Removes the deprecated modifier from ParenExpr.
  • Removes the obsolete deprecation change note.
File Description
go/​ql/​lib/​semmle/​go/​Expr.qll Restores and documents ParenExpr.
go/​ql/​lib/​change-notes/​2026-08-13-cfg.md Removes the deprecation announcement.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread go/ql/lib/semmle/go/Expr.qll Outdated
@owen-mc
owen-mc requested a review from a team September 22, 2026 13:15
Fix typo in comment regarding ParenExpr deprecation.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@owen-mc
owen-mc merged commit 58f080e into github:main Sep 22, 2026
18 checks passed
@owen-mc
owen-mc deleted the go/undeprecate-parenexpr branch September 22, 2026 14:36
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.

3 participants