-
Notifications
You must be signed in to change notification settings - Fork 67
IdentifierHiding
: Improve performance, address some false positives/false negatives
#813
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 all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
27efc31
Remove unused Scope import
lcartey 0c92f2e
DCL53-CPP: Migrate to hidesStrict
lcartey 90d4127
Scope: Remove hides(..) and related predicates
lcartey 6b5021a
Scope: Add getParentScope testing
lcartey b8b4131
Scope: Address logic flaw creating multiple parents
lcartey 1f8e2ba
Scope: Ensure loop entries have correct parent scope
lcartey 63a60b1
Scope: Address performance issues with excludedViaNestedNamespace
lcartey 1bd839c
Scope: Improve performance of hidesStrict
lcartey f25507e
Scope: Add a child scope accessor
lcartey b5ff407
Scope: Adopt use of getAChildScope()
lcartey dbd3fe6
Scope: Fix the parent scope of catch blocks
lcartey 61521e0
Scope: Simplify mechanism for identifying declaration order
lcartey 47b3fb2
Scope: refactor hides calculation to expose pairs of variables
lcartey 9b7e129
Scope: Special case lambda expressions
lcartey 117d0fb
Scope: Extend getParentScope for lambda expressions
lcartey 411ecde
IdentifierHidden: remove lambda special casing
lcartey 52e1bc1
IdentifierHiding - Add change note
lcartey cf315ba
Add extra change note entry
lcartey c56e1ce
TypographicallyDifferent: Update after changes to Scope
lcartey e563637
Merge branch 'main' into lcartey/scope-performance-fix
knewbury01 4d31f5f
Update change_notes/2024-12-08-identifier-hiding.md
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
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,7 @@ | ||
- `A2-10-1` - `IdentifierHiding.ql`: | ||
- Improved evaluation performance. | ||
- Addressed false negatives where nested loops used the same variable name. | ||
- Exclude cases where a variable declared in a lambda expression shadowed a global or namespace variable that did not appear in the same translation unit. | ||
- `RULE-5-3` - `IdentifierHidingC.ql`: | ||
- Improved evaluation performance. | ||
- Addressed false negatives where nested loops used the same variable name. |
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.
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.