Tracking those can help to provide much better diagnostics in many cases.
In general, most of the visitor machinery should be refactored to allow tracking the origin of arbitrary values.
rdar://36039765
Paths
| Differential D51131
[analyzer] Track non-zero values in ReturnVisitor ClosedPublic Authored by george.karpenkov on Aug 22 2018, 3:01 PM.
Details Summary Tracking those can help to provide much better diagnostics in many cases. In general, most of the visitor machinery should be refactored to allow tracking the origin of arbitrary values. rdar://36039765
Diff Detail Event TimelineHerald added subscribers: Szelethus, mikhail.ramalho, a.sidorin and 3 others. · View Herald TranscriptAug 22 2018, 3:01 PM This revision is now accepted and ready to land.Aug 22 2018, 3:14 PM Comment Actions Probably not yet, I'm not sure how many other implicit nullability/undefidedness assumptions are there. But I hope eventually. Closed by commit rC340475: [analyzer] Track non-zero values in ReturnVisitor (authored by george.karpenkov). · Explain WhyAug 22 2018, 4:18 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 162067 clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
clang/test/Analysis/diagnostics/track_subexpressions.cpp
clang/test/Analysis/uninit-const.cpp
|
Dunno, the seems inconsistent here.