Do not escape values stored into known smart pointer fields
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Maybe put these new headers into Inputs where other system header simulators already belong?
clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp | ||
---|---|---|
533–535 | I think it should be safe to unconditionally cast<> here. I doubt you'll ever try to apply this function to a memory space, even accidentally. So i guess you can actually collapse all these casts into a single line of code. | |
1177 | shouldEscapeRegion(MR) currently implies !isSmartPtrField(MR). | |
clang/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp | ||
209 | I suspect that this may crash when RD is an anonymous class. getNameAsString() should be safer. |
Comment Actions
Addressed comments. Not sure about Inputs: plenty of headers are in the root directory.
I think it should be safe to unconditionally cast<> here. I doubt you'll ever try to apply this function to a memory space, even accidentally.
So i guess you can actually collapse all these casts into a single line of code.