Skip to content

Commit 3d2e413

Browse files
Update cpp/common/src/codingstandards/cpp/Scope.qll
Co-authored-by: Remco Vermeulen <[email protected]>
1 parent ab57036 commit 3d2e413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)