-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Data flow: Rework lambda flow [DO NOT MERGE] #17975
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
Conversation
|
|
||
| /** Holds if `creation` is an expression that creates a lambda of kind `kind` for `c`. */ | ||
| predicate lambdaCreation(Node creation, LambdaCallKind kind, DataFlowCallable c) { | ||
| predicate lambdaCreationHelper(Node creation, LambdaCallKind kind, DataFlowCallable c) { |
Check warning
Code scanning / CodeQL
Candidate predicate not marked as `nomagic` Warning
lambdaCreation
| n.(PostUpdateNode).getPreUpdateNode().(ExprNode).getControlFlowNode(), | ||
| n.(LocalFunctionCreationPostUpdateNode).getUnderlyingControlFlowNode() | ||
| ] | ||
| [n.(PostUpdateNode).getPreUpdateNode().(ExprNode).getControlFlowNode(),] |
Check warning
Code scanning / CodeQL
Singleton set literal Warning
| TSyntheticFieldContent(SyntheticField s) or | ||
| TLambdaReturnContent(Method m) or | ||
| TLambdaArgumentContent(Method m, ArgumentPosition pos) { | ||
| exists(m.getParameter(pos)) or pos = -1 |
Check warning
Code scanning / CodeQL
Var only used in one side of disjunct. Warning
variable m
| TSyntheticFieldApproxContent() or | ||
| TLambdaReturnContentApprox(Method m) or | ||
| TLambdaArgumentApprox(Method m, ArgumentPosition pos) { | ||
| exists(m.getParameter(pos)) or pos = -1 |
Check warning
Code scanning / CodeQL
Var only used in one side of disjunct. Warning
variable m
| TNodeLambdaMalloc(Node lambda) { lambdaCreation(lambda, _, _, _) } or | ||
| TNodeLambdaArgs(Node lambda) { lambdaCreation(lambda, _, _, _) } or | ||
| TNodeLambdaArg(DataFlowCall synthCall, ArgumentPosition apos, Boolean ispost) { | ||
| exists(DataFlowCallable c, ParameterNode p, ParameterPosition ppos | |
Check warning
Code scanning / CodeQL
Omittable 'exists' variable Warning
in this argument
1b17262 to
205a41a
Compare
205a41a to
19119ea
Compare
No description provided.