C++: (Bugfix 2) Don't remap isParameterOf.

This commit is contained in:
Mathias Vorreiter Pedersen
2025-01-28 13:28:28 +00:00
parent 662e74924b
commit 06bc8add9d
2 changed files with 159 additions and 8 deletions

View File

@@ -1328,12 +1328,7 @@ abstract private class AbstractParameterNode extends Node {
final predicate isParameterOf(DataFlowCallable c, ParameterPosition pos) {
this.isSummaryParameterOf(c.asSummarizedCallable(), pos)
or
exists(Function f | this.isSourceParameterOf(f, pos) |
not exists(TSummarizedCallable(f)) and
c.asSourceCallable() = f
or
c.asSummarizedCallable() = f
)
this.isSourceParameterOf(c.asSourceCallable(), pos)
}
/** Gets the `Parameter` associated with this node, if it exists. */