[PATCH] D100839: [analyzer] Adjust the reported variable name in retain count checker

2021-04-20 Thread Valeriy Savchenko via Phabricator via cfe-commits
vsavchenko created this revision. Herald added subscribers: steakhal, ASDenysPetrov, martong, Charusso, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, szepet, baloghadamsoftware, xazax.hun. vsavchenko requested review of this revision. Herald added a project: clang. Herald added a sub

[PATCH] D100839: [analyzer] Adjust the reported variable name in retain count checker

2021-04-20 Thread Valeriy Savchenko via Phabricator via cfe-commits
vsavchenko updated this revision to Diff 338835. vsavchenko added a comment. Update comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100839/new/ https://reviews.llvm.org/D100839 Files: clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/

[PATCH] D100839: [analyzer] Adjust the reported variable name in retain count checker

2021-04-21 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. This is a major improvement. `MallocChecker` will have to catch up on that. Hopefully through increased code re-use. Comment at: clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp:651 + + return Result; +} I

[PATCH] D100839: [analyzer] Adjust the reported variable name in retain count checker

2021-04-22 Thread Valeriy Savchenko via Phabricator via cfe-commits
vsavchenko added inline comments. Comment at: clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp:651 + + return Result; +} NoQ wrote: > I feel semi-irrational urge to add comments whenever NRVO is employed. I know, and I lacked trus

[PATCH] D100839: [analyzer] Adjust the reported variable name in retain count checker

2021-04-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp:967-968 + + // While looking for the last var bindings, we can still find + // `AllocFirstBinding` to be one of them. In situations like this, + // it would

[PATCH] D100839: [analyzer] Adjust the reported variable name in retain count checker

2021-04-26 Thread Valeriy Savchenko via Phabricator via cfe-commits
vsavchenko updated this revision to Diff 340544. vsavchenko added a comment. Add test for the case when there are no good alternatives Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100839/new/ https://reviews.llvm.org/D100839 Files: clang/lib/S

[PATCH] D100839: [analyzer] Adjust the reported variable name in retain count checker

2021-04-26 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Great, thanks!~ Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100839/new/ https://reviews.llvm.org/D100839 __

[PATCH] D100839: [analyzer] Adjust the reported variable name in retain count checker

2021-04-28 Thread Valeriy Savchenko via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG61ae2db2d7a9: [analyzer] Adjust the reported variable name in retain count checker (authored by vsavchenko). Repository: rG LLVM Github Monorepo