Skip to content

Commit 8a61a0d

Browse files
committed
Rule-8-4
1 parent 49b1919 commit 8a61a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c/misra/src/rules/RULE-8-4/CompatibleDeclarationObjectDefined.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ where
2626
// no declaration matches
2727
not exists(VariableDeclarationEntry decl2 |
2828
not decl2.isDefinition() and
29-
decl1.getVariable().getQualifiedName() = decl2.getVariable().getQualifiedName() and
29+
decl1.getDeclaration() = decl2.getDeclaration() and
3030
typesCompatible(decl1.getType(), decl2.getType())
3131
)
3232
select decl1, "No separate compatible declaration found for this definition."

0 commit comments

Comments
 (0)