Aaron Ballman
b9ea09c445
Refactors AST matching code to use the new AST matcher names. This patch correlates to r247885 which performs the AST matcher rename in Clang.
...
llvm-svn: 247886
2015-09-17 13:31:25 +00:00
Alexander Kornienko
6ae0a630b8
[clang-tidy] misc-sizeof-container: remove fix-it hints
...
This turned out to be a rather noisy check, so automated fixes will only do
harm. Remove them completely.
llvm-svn: 247578
2015-09-14 16:51:52 +00:00
Alexander Kornienko
4cd7ad9727
[clang-tidy] misc-sizeof-container: whitelist std::array
...
llvm-svn: 247559
2015-09-14 13:55:29 +00:00
Alexander Kornienko
541de378ce
[clang-tidy] misc-sizeof-container: whitelist std::bitset<>.
...
It's fine to use sizeof on std::bitset<>, since it doesn't have any external
storage, everything's inside.
llvm-svn: 247489
2015-09-11 22:54:44 +00:00
Alexander Kornienko
7532d3e93d
[clang-tidy] Add misc-sizeof-container check to find sizeof() uses on stl
...
containers.
Summary:
sizeof(some_std_string) is likely to be an error. This check finds this
pattern and suggests using .size() instead.
Reviewers: djasper, klimek, aaron.ballman
Subscribers: aaron.ballman, cfe-commits
Differential Revision: http://reviews.llvm.org/D12759
llvm-svn: 247297
2015-09-10 16:37:46 +00:00