]> granicus.if.org Git - clang/commit
[analyzer] Add the type of the leaked object to the diagnostic message
authorGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 30 Nov 2018 02:17:44 +0000 (02:17 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 30 Nov 2018 02:17:44 +0000 (02:17 +0000)
commitc3e5d5d8305e164969db8458b4f920db0c23e995
tree808499cc4e8903f0be769a9ca9c8f8f8dc3b01f1
parente5c7e922743e5a8aacd94ea7f19c20df04b46f33
[analyzer] Add the type of the leaked object to the diagnostic message

If the object is a temporary, and there is no variable it binds to,
let's at least print out the object name in order to help differentiate
it from other temporaries.

rdar://45175098

Differential Revision: https://reviews.llvm.org/D55033

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347943 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.h
test/Analysis/Inputs/expected-plists/objc-arc.m.plist
test/Analysis/Inputs/expected-plists/retain-release-path-notes.m.plist
test/Analysis/objc-radar17039661.m
test/Analysis/osobject-retain-release.cpp
test/Analysis/retain-release-path-notes.m
test/Analysis/retaincountchecker-compoundregion.m