using "auto" on a loop that iterates over ints is kind of an overkill. Use the real type name instead.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D13982
Don't use "auto" on loops over fundamental types in modernize-loop-convert. ClosedPublic Authored by angelgarcia on Oct 22 2015, 5:32 AM.
Details Summary using "auto" on a loop that iterates over ints is kind of an overkill. Use the real type name instead.
Diff Detail Event Timelineangelgarcia retitled this revision from to Don't use "auto" on loops over fundamental types in modernize-loop-convert.. angelgarcia updated this object. This revision is now accepted and ready to land.Oct 22 2015, 6:24 AM
Revision Contents
Diff 38119 clang-tidy/modernize/LoopConvertCheck.h
clang-tidy/modernize/LoopConvertCheck.cpp
test/clang-tidy/modernize-loop-convert-basic.cpp
test/clang-tidy/modernize-loop-convert-camelback.cpp
test/clang-tidy/modernize-loop-convert-extra.cpp
test/clang-tidy/modernize-loop-convert-lowercase.cpp
test/clang-tidy/modernize-loop-convert-uppercase.cpp
|