-
Notifications
You must be signed in to change notification settings - Fork 67
Implement C Declarations6 package #157
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
and refactor Identifiers to include new predicate
Notes RULE-17-3The description also talks a bit about function prototypes (which are inherently not implicit declarations) however I think checking that in this rule would be too strict of an interpretation, and function prototype usage is already covered in RULE-8-2 anyways. |
…y01/codeql-coding-standards into knewbury01/Declarations6
Notes RULE-5-9I omitted consideration of the exception case, "Inline functions with internal linkage may be defined in more than one translation unit if they are in the same header file" - this isnt really relevant to CodeQL bc the database only includes one Plus if we think about it, what would the action item be for: "a declaration has the same name - in the same file - just across multiple translation units"... make sure no file could be used in multiple translation units? that wouldnt make sense to me at least. |
Notes RULE-8-10I have opted for the most strict implementation of this rule so far. The rule title says the most strict fix, but the rationale describes how the undefined behaviour actually only occurs in a specific subset of cases when an inline function omits the static storage class. I can take another look if it currently actually seems too strict. |
Completely agree on the rationale for both of your implementation notes 👍 LGTM other than missing implementation notes and a suggestion for preventing permutations in |
Description
Add Decl6
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.