[PATCH] D33304: [clang-tidy] Add a new module Android and a new check for file descriptors.

Stephen Hines via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 18 09:49:08 PDT 2017


srhines added a comment.

In https://reviews.llvm.org/D33304#758621, @joerg wrote:

> I find the use of "must" at the very least inappropriate. If there was no use case for not including it, it wouldn't be an option. There is also nothing really Android-specific here beside maybe the open64 mess.


On Android, we are requiring this flag. That is why this is part of a new category of Android-specific tidy rules. If you think this belongs more generally in a different category for tidy, can you suggest somewhere else to put it? We didn't want to impose these restrictions for platforms that might not want to be so strict. Also, as with any static analysis, there is the possibility that the original code author intended to "break" the rules, but that is what NOLINT is for.


https://reviews.llvm.org/D33304





More information about the cfe-commits mailing list