llvm-project/clang-tools-extra/test/clang-tidy/Inputs
Angel Garcia Gomez bb9ca54bbe Another patch for modernize-loop-convert.
Summary:
1. Avoid converting loops that iterate over the size of a container and don't use its elements, as this would result in an unused-result warning.
2. Never capture the elements by value on lambdas, thus avoiding doing unnecessary copies and errors with non-copyable types.
3. The 'const auto &' instead of 'auto &' substitution on const containers now works on arrays and pseudoarrays as well.
4. The error about multiple replacements in the same macro call is now documented in the tests (not solved though).
5. Due to [1], I had to add a dummy usage of the range element (like "(void) *It;" or similars) on the tests that had empty loops.
6. I removed the braces from the CHECK comments. I think that there is no need for them, and they confuse vim.

Reviewers: klimek

Subscribers: alexfh, cfe-commits

Differential Revision: http://reviews.llvm.org/D12734

llvm-svn: 247399
2015-09-11 10:02:07 +00:00
..
Headers [clang-tidy] Implement the include order checker for LLVM. 2014-08-07 21:49:38 +00:00
config-files Implemented clang-tidy configurability via .clang-tidy files. 2014-09-04 14:23:36 +00:00
file-filter [clang-tidy] Added -system-headers option. 2014-10-28 22:16:13 +00:00
line-filter
modernize-loop-convert Another patch for modernize-loop-convert. 2015-09-11 10:02:07 +00:00
modernize-replace-auto-ptr Add replace-auto_ptr check. 2015-08-25 13:03:43 +00:00
modernize-use-auto [clang-tidy] Migrate UseAuto from clang-modernize to clang-tidy. 2015-08-21 15:08:51 +00:00
google-namespaces.h [clang-tidy] Add namespaces checkers. 2014-07-16 14:16:56 +00:00