Descriptiontools/gn: Convert for loops to use the new range-based loops in C++11.
range-based loops is one of the C++11 allowed features. See
https://chromium-cpp.appspot.com/ and
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/hpzz4EqbVmc.
This patch was generated with the following command lines:
$ ninja -C out/Debug -t compdb cxx > out/Debug/compile_commands.json
$ cd out/Debug
$ find ../../tools/gn -name '*.cc' | xargs -n 16 -P 32 \
~/src/repos/llvm/build/bin/clang-modernize -loop-convert -p . -include \
tools/gn -format -style=Chromium
$ ninja gn gn_unittests
$ ./gn_unittests
BUG=None
TEST=gn && gn_unittests
R=brettw@chromium.org
Committed: https://crrev.com/b9cf968c8dd857a4f1d583e1bd716f32eede07e4
Cr-Commit-Position: refs/heads/master@{#322177}
Patch Set 1 #Patch Set 2 : toplevel_target #Patch Set 3 : self review #Patch Set 4 : const #
Total comments: 10
Patch Set 5 : consts #Patch Set 6 : generate_test_gn_data #
Total comments: 6
Patch Set 7 : more fixes #
Total comments: 6
Patch Set 8 : review fixes #
Messages
Total messages: 17 (2 generated)
|