Skip to content

Commit 0c92f2e

Browse files
committed
DCL53-CPP: Migrate to hidesStrict
Any conflicting variable will be, by definition, in a different scope.
1 parent 27efc31 commit 0c92f2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/cert/src/rules/DCL53-CPP/LocalConstructorInitializedObjectHidesIdentifier.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ from UserVariable v, UserVariable hidden
2020
where
2121
not isExcluded(v, ScopePackage::localConstructorInitializedObjectHidesIdentifierQuery()) and
2222
v.getInitializer().getExpr() instanceof ConstructorCall and
23-
hides(hidden, v)
23+
hidesStrict(hidden, v)
2424
select v, "The declaration declares variable " + v.getName() + " that hides $@", hidden,
2525
hidden.getName()

0 commit comments

Comments
 (0)