gecko-dev/tools/clang-tidy/test/modernize-use-auto.cpp
Andi-Bogdan Postelnicu 0374067886 Bug 1432410 - Add tests in tree to make sure we don't regress with clang-tidy on static-analisys. Tests wrote in part by :sylvestre. r=gps
MozReview-Commit-ID: IWxzKfWNIHG

--HG--
extra : rebase_source : d2bd65c66541e5d6e8d5cc721b117f0a3e7716e8
2018-05-03 20:06:16 +03:00

11 lines
No EOL
234 B
C++

#include <vector>
void func() {
int val = 42;
std::vector<int> my_container;
for (std::vector<int>::iterator I = my_container.begin(),
E = my_container.end();
I != E;
++I) {
}
}