Skip to content

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Dec 5, 2018

The query was recognizing attribute used but not attribute unused on variables (e.g. in boost, wireshark). Both exist and as far as I can tell have subtly different meanings, but both should be excluded from this query.

Also added a test.

@geoffw0 geoffw0 added the C++ label Dec 5, 2018
@geoffw0 geoffw0 requested a review from a team as a code owner December 5, 2018 10:13
Copy link
Contributor

@jbj jbj left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM.


| **Query** | **Expected impact** | **Change** |
|----------------------------|------------------------|------------------------------------------------------------------|
| Unused static variable | Fewer false positive results | Variables with the attribute `unused` are now excluded from the query. |
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should add query ids here as soon as we add entries. Then @felicity-semmle won't have to do detective work to reconstruct them just before the release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. Done.

@jbj jbj merged commit 0a496c1 into github:master Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants