Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Issue 610043002: Convert GN's deps iterator to work with range-based for loops. (Closed)

Created:
6 years, 2 months ago by brettw
Modified:
6 years, 2 months ago
Reviewers:
scottmg
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Convert GN's deps iterator to work with range-based for loops. Reworks DepsIterator so it is compatible with STL iterators enough to work with range-based for loops. The iterator is now created by a target rather than taking a target as an argument, which makes the loops more natural. I also changed some loops around code I was touching to use range-based. Committed: https://crrev.com/a09df11aa1c5f416df4fb97f2303d9c1ff76b150 Cr-Commit-Position: refs/heads/master@{#297122}

Patch Set 1 #

Patch Set 2 : new name #

Patch Set 3 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -112 lines) Patch
M tools/gn/binary_target_generator.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M tools/gn/builder.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download
M tools/gn/command_desc.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M tools/gn/command_refs.cc View 1 1 chunk +3 lines, -6 lines 2 comments Download
M tools/gn/deps_iterator.h View 1 chunk +39 lines, -27 lines 0 comments Download
M tools/gn/deps_iterator.cc View 3 chunks +25 lines, -17 lines 0 comments Download
M tools/gn/ninja_action_target_writer.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M tools/gn/ninja_binary_target_writer.cc View 1 1 chunk +6 lines, -11 lines 0 comments Download
M tools/gn/ninja_group_target_writer.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download
M tools/gn/target.h View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M tools/gn/target.cc View 1 2 8 chunks +35 lines, -29 lines 2 comments Download

Messages

Total messages: 12 (3 generated)
brettw
6 years, 2 months ago (2014-09-26 23:44:50 UTC) #2
brettw
Whoops, meant to send this to Scott.
6 years, 2 months ago (2014-09-26 23:45:21 UTC) #4
tfarina
https://codereview.chromium.org/610043002/diff/40001/tools/gn/command_refs.cc File tools/gn/command_refs.cc (right): https://codereview.chromium.org/610043002/diff/40001/tools/gn/command_refs.cc#newcode23 tools/gn/command_refs.cc:23: typedef std::vector<const Target*> TargetVector; you can remove this, it ...
6 years, 2 months ago (2014-09-27 00:33:56 UTC) #5
scottmg
lgtm https://codereview.chromium.org/610043002/diff/40001/tools/gn/target.cc File tools/gn/target.cc (right): https://codereview.chromium.org/610043002/diff/40001/tools/gn/target.cc#newcode275 tools/gn/target.cc:275: for (std::set<const Target*>::const_iterator cur = for (const auto& ...
6 years, 2 months ago (2014-09-27 00:40:07 UTC) #6
brettw
https://codereview.chromium.org/610043002/diff/40001/tools/gn/target.cc File tools/gn/target.cc (right): https://codereview.chromium.org/610043002/diff/40001/tools/gn/target.cc#newcode275 tools/gn/target.cc:275: for (std::set<const Target*>::const_iterator cur = On 2014/09/27 00:40:07, scottmg ...
6 years, 2 months ago (2014-09-27 22:21:34 UTC) #7
brettw
https://codereview.chromium.org/610043002/diff/40001/tools/gn/command_refs.cc File tools/gn/command_refs.cc (right): https://codereview.chromium.org/610043002/diff/40001/tools/gn/command_refs.cc#newcode23 tools/gn/command_refs.cc:23: typedef std::vector<const Target*> TargetVector; Thanks, will pick this up ...
6 years, 2 months ago (2014-09-27 22:23:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/610043002/40001
6 years, 2 months ago (2014-09-27 22:23:52 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 54cbe3085cf3b0e9202e826e6f4629a1ee7dc46a
6 years, 2 months ago (2014-09-27 22:27:20 UTC) #11
commit-bot: I haz the power
6 years, 2 months ago (2014-09-27 22:28:04 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a09df11aa1c5f416df4fb97f2303d9c1ff76b150
Cr-Commit-Position: refs/heads/master@{#297122}

Powered by Google App Engine
This is Rietveld 408576698