-
Notifications
You must be signed in to change notification settings - Fork 15.5k
[clang][dataflow] Add parameters of other functions to `LambdaCaptured… #170311
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -154,6 +154,14 @@ struct ReferencedDecls { | |
| /// When analyzing a lambda's call operator, the set of all parameters (from | ||
| /// the surrounding function) that the lambda captures. Captured local | ||
| /// variables are already included in `Locals` above. | ||
| /// | ||
| /// This set also includes any referenced parameters of functions other than | ||
|
||
| /// the function whose body is targeted for visitation. When calling | ||
| /// `getReferencedDecls(const Stmt& S)`, there is no such targeted function, | ||
| /// so any referenced function parameters are included in this set. This | ||
| /// supports the collection of ReferencedDecls from a DeclStmt constructed for | ||
| /// lambda init-capture VarDecls for the purpose of performing a dataflow | ||
| /// analysis on the declaration/initialization. | ||
| llvm::SetVector<const ParmVarDecl *> LambdaCapturedParams; | ||
| }; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.