Skip to content

Commit

Permalink
A7-3-1: Enable using to be on any line
Browse files Browse the repository at this point in the history
Similar change to NonOverridable case.
  • Loading branch information
lcartey committed Oct 6, 2023
1 parent 4a98c6a commit 6e35de7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ where
// and the hidden declaration isn't explicitly brought in scope through a using declaration.
not exists(UsingDeclarationEntry ude |
ude.getDeclaration() = hiddenDecl.getDeclaration() and
ude.getEnclosingElement() = overridingDecl.getDeclaration().getDeclaringType() and
ude.getLocation().getStartLine() < overridingDecl.getLocation().getStartLine()
ude.getEnclosingElement() = overridingDecl.getDeclaration().getDeclaringType()
)
or
// 2. if the overriding declaration doesn't override a base member function but has the same name
Expand Down

0 comments on commit 6e35de7

Please sign in to comment.