If the object is a temporary, and there is no variable it binds to, let's at least print out the object type in order to help differentiate it from other temporaries.
rdar://45175098
Paths
| Differential D55033
[analyzer] Add the type of the leaked object to the diagnostic message ClosedPublic Authored by george.karpenkov on Nov 28 2018, 2:51 PM.
Details Summary If the object is a temporary, and there is no variable it binds to, let's at least print out the object type in order to help differentiate it from other temporaries. rdar://45175098
Diff Detail Event TimelineHerald added subscribers: dkrupp, donat.nagy, Szelethus and 5 others. · View Herald TranscriptNov 28 2018, 2:51 PM
This revision is now accepted and ready to land.Nov 29 2018, 6:03 PM Closed by commit rC347943: [analyzer] Add the type of the leaked object to the diagnostic message (authored by george.karpenkov). · Explain WhyNov 29 2018, 6:20 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 175774 clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.h
clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
clang/test/Analysis/Inputs/expected-plists/objc-arc.m.plist
clang/test/Analysis/Inputs/expected-plists/retain-release-path-notes.m.plist
clang/test/Analysis/objc-radar17039661.m
clang/test/Analysis/osobject-retain-release.cpp
clang/test/Analysis/retain-release-path-notes.m
clang/test/Analysis/retaincountchecker-compoundregion.m
|
Should we drop the * here? I.e., MyObj sounds more like a type of an object than MyObj *.