We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5124660 commit 1d04c89Copy full SHA for 1d04c89
1 file changed
cpp/ql/src/Best Practices/Hiding/DeclarationHidesParameter.ql
@@ -15,15 +15,14 @@ import cpp
15
* Gets the template that a function `f` is constructed from, or just `f` if it
16
* is not from a template instantiation.
17
*/
18
-Function getConstructedFrom(Function f)
19
-{
+Function getConstructedFrom(Function f) {
20
exists(Function mid |
21
f.isConstructedFrom(mid) and
22
result = getConstructedFrom(mid)
23
- ) or (
24
- not f.isConstructedFrom(_) and
25
- result = f
26
)
+ or
+ not f.isConstructedFrom(_) and
+ result = f
27
}
28
29
/**
0 commit comments