Lambdas can affect static locals even without an explicit capture.
rdar://39537031
Paths
| Differential D50368
[analyzer] Invalidate static locals when escaping lambdas ClosedPublic Authored by george.karpenkov on Aug 6 2018, 3:47 PM.
Details Summary Lambdas can affect static locals even without an explicit capture. rdar://39537031
Diff Detail Event Timelinegeorge.karpenkov retitled this revision from Invalidate static locals when escaping lambdas to [analyzer] Invalidate static locals when escaping lambdas.Aug 7 2018, 11:59 AM Herald added subscribers: mikhail.ramalho, a.sidorin, szepet and 2 others. · View Herald TranscriptAug 7 2018, 11:59 AM Comment Actions I think we should also add the test with the original problem: where the lambda is being called directly but isn't inlined due to call stack depth limit. We could artificially set the limit in the RUN: line to an explicit small value to emulate the desired behavior. This revision is now accepted and ready to land.Aug 7 2018, 12:15 PM Closed by commit rL339459: Invalidate static locals when escaping lambdas (authored by george.karpenkov). · Explain WhyAug 10 2018, 11:28 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 160150 clang/lib/StaticAnalyzer/Core/RegionStore.cpp
clang/test/Analysis/lambdas.cpp
|