summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/misc-sizeof-container.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Switch check_clang_tidy to argparse and add a -resource-dir argument.Manuel Klimek2015-10-221-1/+1
| | | | | | | -resource-dir can be used to inject non-standard resource dirs via the lit site config. llvm-svn: 251021
* Add %check_clang_tidy and %clang_tidy_diff.Manuel Klimek2015-10-221-1/+1
| | | | | | | | | | With this, site specific lit configs can inject parameters into the test scripts if they need site specific parameters. Next up: enable check_clang_tidy to take a resource dir to enable non-standard locations for builtin includes. llvm-svn: 251010
* [clang-tidy] misc-sizeof-container: remove fix-it hintsAlexander Kornienko2015-09-141-5/+0
| | | | | | | This turned out to be a rather noisy check, so automated fixes will only do harm. Remove them completely. llvm-svn: 247578
* [clang-tidy] misc-sizeof-container: whitelist std::arrayAlexander Kornienko2015-09-141-6/+14
| | | | llvm-svn: 247559
* [clang-tidy] misc-sizeof-container: whitelist std::bitset<>.Alexander Kornienko2015-09-111-0/+8
| | | | | | | It's fine to use sizeof on std::bitset<>, since it doesn't have any external storage, everything's inside. llvm-svn: 247489
* clang-tidy/misc-sizeof-container.cpp: Add explicit triple.NAKAMURA Takumi2015-09-111-1/+1
| | | | | | | | | | For targeting LLP64, like Windows x86, size_t is not unsigned long. tools/clang/tools/extra/test/clang-tidy/Output/misc-sizeof-container.cpp.tmp.cpp:33:12: error: target of using declaration conflicts with declaration already in scope [clang-diagnostic-error] using std::size_t; ^ llvm-svn: 247394
* [clang-tidy] Add misc-sizeof-container check to find sizeof() uses on stlAlexander Kornienko2015-09-101-0/+92
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
OpenPOWER on IntegriCloud