Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Add a superclass for literals#172

Merged
max-schaefer merged 2 commits intogithub:masterfrom
owen-mc:superclass-for-literals
Jun 11, 2020
Merged

Add a superclass for literals#172
max-schaefer merged 2 commits intogithub:masterfrom
owen-mc:superclass-for-literals

Conversation

@owen-mc
Copy link
Copy Markdown
Contributor

@owen-mc owen-mc commented Jun 11, 2020

No description provided.

@owen-mc owen-mc requested a review from max-schaefer June 11, 2020 10:22
@owen-mc owen-mc force-pushed the superclass-for-literals branch from acbbbd6 to cd9f243 Compare June 11, 2020 10:40
Comment thread ql/src/go.dbscheme Outdated

@bitwiseexpr = @bitwiseunaryexpr | @bitwisebinaryexpr;

@literal = @basiclit | @funclit | @compositelit;
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.

You should make these changes in extractor/dbscheme/tables.go or they won't persist as the make script overwrites this file. Also, I think this change requires a (trivial) database upgrade script; I think there's a wiki page describing it on the old Semmle wiki, do you have access to that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've realised it's better to try to do it without changing the database scheme at all

@owen-mc owen-mc force-pushed the superclass-for-literals branch from cd9f243 to 9f271dd Compare June 11, 2020 14:21
max-schaefer
max-schaefer previously approved these changes Jun 11, 2020
Copy link
Copy Markdown
Contributor

@max-schaefer max-schaefer left a comment

Choose a reason for hiding this comment

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

LGTM; will merge after class-reference changes are backported.

Comment thread ql/src/semmle/go/Expr.qll Outdated
Co-authored-by: Max Schaefer <54907921+max-schaefer@users.noreply.github.com>
@max-schaefer max-schaefer merged commit f11b956 into github:master Jun 11, 2020
@owen-mc owen-mc deleted the superclass-for-literals branch June 11, 2020 18:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants