We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c9cb2a0 + 2b4da8d commit dca93f5Copy full SHA for dca93f5
cpp/ql/src/semmle/code/cpp/Parameter.qll
@@ -68,10 +68,9 @@ class Parameter extends LocalScopeVariable, @parameter {
68
*/
69
private VariableDeclarationEntry getAnEffectiveDeclarationEntry() {
70
if getFunction().isConstructedFrom(_)
71
- then exists (Parameter prototype
72
- | prototype = result.getVariable() and
73
- prototype.getIndex() = getIndex() and
74
- getFunction().isConstructedFrom(prototype.getFunction()))
+ then exists (Function prototypeInstantiation
+ | prototypeInstantiation.getParameter(getIndex()) = result.getVariable() and
+ getFunction().isConstructedFrom(prototypeInstantiation))
75
else result = getADeclarationEntry()
76
}
77
0 commit comments