We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2472b40 commit 96098c5Copy full SHA for 96098c5
cpp/ql/src/Best Practices/Hiding/DeclarationHidesParameter.ql
@@ -16,10 +16,7 @@ import cpp
16
* is not from a template instantiation.
17
*/
18
Function getConstructedFrom(Function f) {
19
- exists(Function mid |
20
- f.isConstructedFrom(mid) and
21
- result = getConstructedFrom(mid)
22
- )
+ f.isConstructedFrom(result)
23
or
24
not f.isConstructedFrom(_) and
25
result = f
0 commit comments