[PATCH] D35787: [clang-tidy] Ignore vector<bool> in inefficient-vector-operation.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 3 05:03:23 PDT 2017


hokein added a comment.

In https://reviews.llvm.org/D35787#819007, @alexfh wrote:

> Should we look at whether the size is statically known?


Do you mean the size of the template type T in `vector<T>`?  STL only provides a template specialization for `std::vector<bool>`, so I think excluding `vector<bool>` is probably enough, or am I missing anything here?


https://reviews.llvm.org/D35787





More information about the cfe-commits mailing list