Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3d2e413

Browse filesBrowse files
Update cpp/common/src/codingstandards/cpp/Scope.qll
Co-authored-by: Remco Vermeulen <rvermeulen@users.noreply.github.com>
1 parent ab57036 commit 3d2e413
Copy full SHA for 3d2e413

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎cpp/common/src/codingstandards/cpp/Scope.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/Scope.qll
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ predicate hides(UserDeclaration v1, UserDeclaration v2) {
274274
hides_candidate(v1, mid) and
275275
hides_candidate(mid, v2)
276276
) and
277-
//ignore intentional overloads
277+
// Unlike `hidesStrict`, that requires a different scope, `hides` considers declarations in the same scope. This will include function overloads based on their name. To remove overloads from consideration, we exclude them.
278278
not v1.(Function).getAnOverload() = v2
279279
}
280280

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.