-
Notifications
You must be signed in to change notification settings - Fork 67
Package Declarations1 #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Notes DCL37-CI did not implement the future library directions restrictions for this rule, and described that in the implementation notes, however if it seems like these would be crucial, I can add those |
Notes DCL31-CSOLVED: not supporting gcc currently - "check for implicit function declarations" will not be checked by this rule. currently not supporting "check for implicit function declarations" portion of the rule, only supporting "Omission of type specifiers" portion I need a reminder for what to do if our test setup doesnt compile a certain test, but other compilers do
compiles with: but |
RULE-5-1 notessome perf issue maybe exists for this one currently, related to joining on names I think, but was hoping that external identifiers subclass was a small enough set to avoid this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a first pass review, and added a few comments. I will take a further look tomorrow morning, but it's already looking good. 👍
...on/src/codingstandards/cpp/rules/declaredareservedidentifier/DeclaredAReservedIdentifier.qll
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review completed. Good job overall. Only major feedback was on Rule 5.1, which I think needs some refining to handle performance issues, mixed C/C++ code and edge cases around multiple declarations.
...on/src/codingstandards/cpp/rules/declaredareservedidentifier/DeclaredAReservedIdentifier.qll
Show resolved
Hide resolved
"Ok, let's add an issue to this repository to investigate using a different data source for the C standard library names." |
…for RULE-5-1 and RULE-5-4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, just a couple more things! Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for the changes!
Description
Package Declarations1
Change request type
.ql
,.qll
,.qls
or unit tests)Rules with added or modified queries
Release change checklist
A change note (development_handbook.md#change-notes) is required for any pull request which modifies:
If you are only adding new rule queries, a change note is not required.
Author: Is a change note required?
Reviewer: Confirm that either a change note is not required or the change note is required and has been added.
Query development review checklist
For PRs that add new queries or modify existing queries, the following checklist should be completed by both the author and reviewer:
Author
As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.
Reviewer
As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.