Skip to content

Commit 96098c5

Browse files
committed
C++: Simplify getConstructedFrom.
1 parent 2472b40 commit 96098c5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cpp/ql/src/Best Practices/Hiding/DeclarationHidesParameter.ql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ import cpp
1616
* is not from a template instantiation.
1717
*/
1818
Function getConstructedFrom(Function f) {
19-
exists(Function mid |
20-
f.isConstructedFrom(mid) and
21-
result = getConstructedFrom(mid)
22-
)
19+
f.isConstructedFrom(result)
2320
or
2421
not f.isConstructedFrom(_) and
2522
result = f

0 commit comments

Comments
 (0)