[PATCH] D35613: Add Support for Generic Reference Counting Annotations in RetainCountChecker

2017-07-25 Thread Devin Coughlin via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL308990: [analyzer] Add diagnostic text for generalized refcount annotations. (authored by dcoughlin). Changed prior to commit: https://reviews.llvm.org/D35613?vs=107471=108115#toc Repository: rL

[PATCH] D35613: Add Support for Generic Reference Counting Annotations in RetainCountChecker

2017-07-25 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin accepted this revision. dcoughlin added a comment. This revision is now accepted and ready to land. Sorry for the delay! This looks good to me. We have a really embarrassing FIXMELATER from 2012 (!!!) that disabled the plist tests for diagnostics. This means we're not getting testing

[PATCH] D35613: Add Support for Generic Reference Counting Annotations in RetainCountChecker

2017-07-25 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin added a comment. I will commit. Repository: rL LLVM https://reviews.llvm.org/D35613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D35613: Add Support for Generic Reference Counting Annotations in RetainCountChecker

2017-07-22 Thread Malhar Thakkar via Phabricator via cfe-commits
malhar1995 added a comment. @dcoughlin Ping. Repository: rL LLVM https://reviews.llvm.org/D35613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D35613: Add Support for Generic Reference Counting Annotations in RetainCountChecker

2017-07-20 Thread Malhar Thakkar via Phabricator via cfe-commits
malhar1995 updated this revision to Diff 107471. malhar1995 added a comment. Removed the checks to see if the symbol type is NULL while printing diagnostics as they are unnecessary. Repository: rL LLVM https://reviews.llvm.org/D35613 Files:

[PATCH] D35613: Add Support for Generic Reference Counting Annotations in RetainCountChecker

2017-07-20 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp:2012 + } else if (CurrV.getObjKind() == RetEffect::GenericC) { +if (Sym->getType().isNull()) { + os << " returns an object with a "; malhar1995 wrote:

[PATCH] D35613: Add Support for Generic Reference Counting Annotations in RetainCountChecker

2017-07-20 Thread Malhar Thakkar via Phabricator via cfe-commits
malhar1995 added inline comments. Comment at: lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp:2012 + } else if (CurrV.getObjKind() == RetEffect::GenericC) { +if (Sym->getType().isNull()) { + os << " returns an object with a "; NoQ wrote:

[PATCH] D35613: Add Support for Generic Reference Counting Annotations in RetainCountChecker

2017-07-19 Thread Malhar Thakkar via Phabricator via cfe-commits
malhar1995 updated this revision to Diff 107347. malhar1995 added a comment. Addressed all comments except the one where I had to remove the test to see if the return type was null while emitting diagnostics. Repository: rL LLVM https://reviews.llvm.org/D35613 Files:

[PATCH] D35613: Add Support for Generic Reference Counting Annotations in RetainCountChecker

2017-07-19 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp:2012 + } else if (CurrV.getObjKind() == RetEffect::GenericC) { +if (Sym->getType().isNull()) { + os << " returns an object with a "; I don't think

[PATCH] D35613: Add Support for Generic Reference Counting Annotations in RetainCountChecker

2017-07-19 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin added a comment. This looks pretty good. There are some minor comments in line. One thing that is missing: tests for the new diagnostic text. Can you add new tests that specifically test for the new diagnostic text with // expected-warning {{ ... }}}. These should probably go in

[PATCH] D35613: Add Support for Generic Reference Counting Annotations in RetainCountChecker

2017-07-19 Thread Malhar Thakkar via Phabricator via cfe-commits
malhar1995 created this revision. malhar1995 added a project: clang. As part of my Google Summer of Code project, I am working on adding support for Integer Set Library (ISL) annotations to the current RetainCountChecker. Note about ISL: ISL has annotations __isl_give and __isl_take which are