OwnedSymbol is not used anywhere; OwnedAllocatedSymbol is used instead. I couldn't grasp the intended difference between the two, maybe we should remove it?
Details
Diff Detail
Event Timeline
I suspect allocated owned means that the analyzer saw the allocation site.
Removing dead code is great! Thanks. This looks good to me other than the name of the method that I commented about.
include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h | ||
---|---|---|
178–179 | Should we rename into MakeAllocatedOwned()? |
include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h | ||
---|---|---|
178–179 | I think the current use of 'OwnedAllocatedSymbol' more closely matches what is conveyed by the name and documentation of 'OwnedSymbol', so it might be better to remove 'OwnedSymbol' (as Artem has done) and then immediately rename all occurrences of 'OwnedAllocatedSymbol' to 'OwnedSymbol'. There are plenty of places where the analyzer doesn't see the allocation site and yet yields 'OwnedAllocatedSymbol', so I don't think the current implementation matches its name. |
Should we rename into MakeAllocatedOwned()?