Details
Details
- Reviewers
dcoughlin NoQ - Commits
- rG2bd644ebbd6f: [analyzer] RetainCountChecker: recognize that OSObject can be created directly…
rL347949: [analyzer] RetainCountChecker: recognize that OSObject can be created directly…
rC347949: [analyzer] RetainCountChecker: recognize that OSObject can be created directly…
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
clang/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp | ||
---|---|---|
483–497 ↗ | (On Diff #175949) | It's actually just Call.getDecl() and you can turn this into a fall-through. |
clang/test/Analysis/osobject-retain-release.cpp | ||
27 ↗ | (On Diff #175949) | I think we should use size_t as much as possible, because this may otherwise have weird consequences on platforms on which size_t is not defined as unsigned long. Not sure if this checker is ran on such platforms. But the test doesn't have the triple specified, so it runs under the host triple, which may be arbitrary and cause problems on buildbots. I.e., typedef __typeof(sizeof(int)) size_t; // use size_t |
clang/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp | ||
---|---|---|
297 ↗ | (On Diff #175949) | This function is probably also entered for global operator new that isn't a method on any class. Does the function behave sanely in this case? |
clang/test/Analysis/osobject-retain-release.cpp | ||
---|---|---|
27 ↗ | (On Diff #175949) |
clang/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp | ||
---|---|---|
483–497 ↗ | (On Diff #175949) | Call.getDecl() returns a Decl (gotta love Obj-C methods!). I guess we can group all those cases, and cast the returned decl to FunctionDecl instead of casting the call. |