-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data flow: Rework reverse flow through parameters #18109
base: main
Are you sure you want to change the base?
Conversation
8d261e5
to
2e254e4
Compare
8f34281
to
f37447b
Compare
a2dc9b1
to
13b8249
Compare
3b814f0
to
d0673a1
Compare
6534946
to
296d8fb
Compare
296d8fb
to
45c5da2
Compare
) | ||
or | ||
// flow through: no prior read | ||
exists(ArgNode arg | |
Check warning
Code scanning / CodeQL
Candidate predicate not marked as `nomagic` Warning
loadStep
) { | ||
exists(ParameterPosition pos | | ||
parameterValueFlowsToPreUpdate(p, n) and | ||
p.isParameterOf(_, pos) and |
Check warning
Code scanning / CodeQL
Candidate predicate not marked as `nomagic` Warning
reducedViableImplInCallContext
Candidate predicate to
reducedViableImplInCallContext
) { | ||
c = getNodeEnclosingCallable(n) and | ||
paramReturnNode(n, p, _, kind) | ||
} |
Check warning
Code scanning / CodeQL
Candidate predicate not marked as `nomagic` Warning
reducedViableImplInReturn
Candidate predicate to
reducedViableImplInReturn
45c5da2
to
23d552e
Compare
23d552e
to
d84ca39
Compare
@@ -2267,14 +2299,15 @@ | |||
) | |||
or | |||
// flow out of a callable | |||
exists(ReturnPosition pos | | |||
revFlowOut(_, node, pos, state, _, _, _, ap) and | |||
exists(DataFlowCall call, ReturnPosition pos | |
Check warning
Code scanning / CodeQL
Omittable 'exists' variable Warning
No description provided.