This fixes https://llvm.org/bugs/show_bug.cgi?id=22196 .
Also add a non-trivially copyable type to fix some tests that were meant to be about using const-refs, but were changed in r248438.
Paths
| Differential D13292
Add support for 'cbegin()' and 'cend()' on modernize-loop-convert. ClosedPublic Authored by angelgarcia on Sep 30 2015, 8:31 AM.
Details Summary This fixes https://llvm.org/bugs/show_bug.cgi?id=22196 . Also add a non-trivially copyable type to fix some tests that were meant to be about using const-refs, but were changed in r248438.
Diff Detail Event Timelineangelgarcia retitled this revision from to Add support for 'cbegin()' and 'cend()' on modernize-loop-convert.. angelgarcia updated this object. klimek edited edge metadata. Comment Actions... Which indicates that the tests might need better names and more comments, so I don't mess them up next time :D This revision is now accepted and ready to land.Oct 1 2015, 1:41 AM angelgarcia edited edge metadata. Comment ActionsYes, right now it is pretty hard to figure out what some of the tests are for, they are a bit messy. I plan to do something about it, but for now I added a comment on that test. Closed by commit rL248994: Add support for 'cbegin()' and 'cend()' on modernize-loop-convert. (authored by angelgarcia). · Explain WhyOct 1 2015, 1:59 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 36198 clang-tidy/modernize/LoopConvertCheck.cpp
test/clang-tidy/Inputs/modernize-loop-convert/structures.h
test/clang-tidy/modernize-loop-convert-basic.cpp
|