Skip to content

Commit 6e35de7

Browse files
committed
A7-3-1: Enable using to be on any line
Similar change to NonOverridable case.
1 parent 4a98c6a commit 6e35de7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cpp/autosar/src/rules/A7-3-1/HiddenInheritedOverridableMemberFunction.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ where
3636
// and the hidden declaration isn't explicitly brought in scope through a using declaration.
3737
not exists(UsingDeclarationEntry ude |
3838
ude.getDeclaration() = hiddenDecl.getDeclaration() and
39-
ude.getEnclosingElement() = overridingDecl.getDeclaration().getDeclaringType() and
40-
ude.getLocation().getStartLine() < overridingDecl.getLocation().getStartLine()
39+
ude.getEnclosingElement() = overridingDecl.getDeclaration().getDeclaringType()
4140
)
4241
or
4342
// 2. if the overriding declaration doesn't override a base member function but has the same name

0 commit comments

Comments
 (0)