We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a98c6a commit 6e35de7Copy full SHA for 6e35de7
cpp/autosar/src/rules/A7-3-1/HiddenInheritedOverridableMemberFunction.ql
@@ -36,8 +36,7 @@ where
36
// and the hidden declaration isn't explicitly brought in scope through a using declaration.
37
not exists(UsingDeclarationEntry ude |
38
ude.getDeclaration() = hiddenDecl.getDeclaration() and
39
- ude.getEnclosingElement() = overridingDecl.getDeclaration().getDeclaringType() and
40
- ude.getLocation().getStartLine() < overridingDecl.getLocation().getStartLine()
+ ude.getEnclosingElement() = overridingDecl.getDeclaration().getDeclaringType()
41
)
42
or
43
// 2. if the overriding declaration doesn't override a base member function but has the same name
0 commit comments