mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
C++: (Bugfix 2) Don't remap isParameterOf.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user