diff options
| author | Ryosuke Niwa <rniwa@webkit.org> | 2024-12-19 18:11:28 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-19 18:11:28 -0800 |
| commit | a71f9e6986b80fa90c453219795a1369b8ea7b6e (patch) | |
| tree | 3acbe2159084c035dc8364588e00b1f695fa9a3d /llvm/tools/llvm-cov/CodeCoverage.cpp | |
| parent | 4307198d51487cc16f98eebb2113caf4a1905914 (diff) | |
| download | llvm-a71f9e6986b80fa90c453219795a1369b8ea7b6e.zip llvm-a71f9e6986b80fa90c453219795a1369b8ea7b6e.tar.gz llvm-a71f9e6986b80fa90c453219795a1369b8ea7b6e.tar.bz2 | |
[webkit.UncountedLambdaCapturesChecker] Detect protectedThis pattern. (#120528)
In WebKit, we often capture this as Ref or RefPtr in addition to this
itself so that the object lives as long as a capturing lambda stays
alive.
Detect this pattern and treat it as safe. This PR also makes the check
for a lambda being passed as a function argument more robust by handling
CXXBindTemporaryExpr, CXXConstructExpr, and DeclRefExpr referring to the
lambda.
Diffstat (limited to 'llvm/tools/llvm-cov/CodeCoverage.cpp')
0 files changed, 0 insertions, 0 deletions
