-
Notifications
You must be signed in to change notification settings - Fork 66
A2-10-1: add functions and types to identifier consideration #546
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
Merged
Merged
Changes from 23 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
5d3c27b
A2-10-1: add functions and types to identifier consideration
knewbury01 a1f4362
Fix predicate name change
knewbury01 9be5a7b
Identifier Hidden: missed expeted for shared, generalize variable cou…
knewbury01 ef110cd
IdentifierHidden: add missing exception testcases and address nested …
knewbury01 edf41d5
Scope: improve user declaration definition
knewbury01 fff63e6
IdentifierHidden: omit types
knewbury01 20d9dd6
IdentifierHidden: move type exclusion to rule not userdecl type, and …
knewbury01 169cbe7
identifierhidden: update testcase for overload omission, update chang…
knewbury01 63cec52
IdentifierHidden: reformat
knewbury01 97ccd29
IdentifierHidden: add heuristic for hiding in lambda
knewbury01 ab57036
Update cpp/common/src/codingstandards/cpp/Scope.qll
knewbury01 3d2e413
Update cpp/common/src/codingstandards/cpp/Scope.qll
knewbury01 5606a6c
IdentifierHidden: improve variable names and docs/overall readability
knewbury01 37d9bd9
Merge branch 'knewbury01/fix-118' of https://github.com/knewbury01/co…
knewbury01 908b6e9
IdentifierHidden: improve lambda handling case
knewbury01 6a21fa5
Handle lambda scope using `Scope` class
rvermeulen 20ef634
Fix missing space in comment
rvermeulen 69d18f2
Merge pull request #2 from rvermeulen/rvermeulen/lambda-scope
knewbury01 30aa044
IdentifierHidden: reduce FN case and remove redundant testcase
knewbury01 24247d2
Refactor A7-1-2 to extract constant expression logic
knewbury01 22a80f6
IdentifierHidden: use improved constant expression logic
knewbury01 a0ff1a1
Merge branch 'main' into knewbury01/fix-118
knewbury01 b2c5896
Reformat query
knewbury01 a9f55d2
Scope lib: rename predicate
knewbury01 80432d8
IdentifierHidden: revert realisitic compile time constant model in la…
knewbury01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
c/common/test/rules/identifierhidden/IdentifierHidden.expected
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
| test.c:4:7:4:9 | id1 | Variable is hiding variable $@. | test.c:1:5:1:7 | id1 | id1 | | ||
| test.c:7:13:7:15 | id1 | Variable is hiding variable $@. | test.c:1:5:1:7 | id1 | id1 | | ||
| test.c:10:12:10:14 | id1 | Variable is hiding variable $@. | test.c:1:5:1:7 | id1 | id1 | | ||
| test.c:11:14:11:16 | id1 | Variable is hiding variable $@. | test.c:10:12:10:14 | id1 | id1 | | ||
| test.c:24:24:24:26 | id2 | Variable is hiding variable $@. | test.c:22:5:22:7 | id2 | id2 | | ||
| test.c:4:7:4:9 | id1 | Declaration is hiding declaration $@. | test.c:1:5:1:7 | id1 | id1 | | ||
| test.c:7:13:7:15 | id1 | Declaration is hiding declaration $@. | test.c:1:5:1:7 | id1 | id1 | | ||
| test.c:10:12:10:14 | id1 | Declaration is hiding declaration $@. | test.c:1:5:1:7 | id1 | id1 | | ||
| test.c:11:14:11:16 | id1 | Declaration is hiding declaration $@. | test.c:10:12:10:14 | id1 | id1 | | ||
| test.c:24:24:24:26 | id2 | Declaration is hiding declaration $@. | test.c:22:5:22:7 | id2 | id2 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- `A2-10-1`, `RULE-5-3` - `IdentifierHiding.ql`, `IdentifierHidingC.ql`: | ||
- Address FN reported in #118. Rule was missing detection of functions. Additionally omitted class template instantiations. | ||
- Fix FP for identifiers in nested namespaces. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.