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

Issue 2095043005: Add GN split_list function (Closed)

Created:
4 years, 6 months ago by brettw
Modified:
4 years, 5 months ago
Reviewers:
scottmg
CC:
chromium-reviews, Dirk Pranke, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add GN split_list function. This function splits a list into N sub-lists. The plan is to use this in a template to automatically split static libraries. Add a new class ParseNodeValueAdapter which allows getting a list out of a function call without having to copy it. This is used in the new code and is used in a cleanup of rebase_foreach (both of which can take large input lists). Committed: https://crrev.com/c0ff88647c120f24203e50f7886f8e01a163c511 Cr-Commit-Position: refs/heads/master@{#402555}

Patch Set 1 #

Patch Set 2 : whitespace #

Patch Set 3 : . #

Total comments: 3

Patch Set 4 : review_comments #

Total comments: 1

Patch Set 5 : typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -20 lines) Patch
M tools/gn/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/gn/function_foreach.cc View 2 chunks +5 lines, -20 lines 0 comments Download
M tools/gn/functions.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M tools/gn/functions.cc View 1 2 3 3 chunks +86 lines, -0 lines 0 comments Download
M tools/gn/functions_unittest.cc View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
M tools/gn/gn.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A tools/gn/parse_node_value_adapter.h View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
A tools/gn/parse_node_value_adapter.cc View 1 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
brettw
.
4 years, 5 months ago (2016-06-27 21:26:33 UTC) #2
brettw
4 years, 5 months ago (2016-06-27 21:28:16 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2095043005/40001
4 years, 5 months ago (2016-06-27 21:29:08 UTC) #7
scottmg
https://codereview.chromium.org/2095043005/diff/40001/tools/gn/functions.cc File tools/gn/functions.cc (right): https://codereview.chromium.org/2095043005/diff/40001/tools/gn/functions.cc#newcode863 tools/gn/functions.cc:863: *err = Err(function, "Negative result size."); <= isn't quite ...
4 years, 5 months ago (2016-06-27 22:06:02 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-27 23:04:03 UTC) #10
brettw
review_comments
4 years, 5 months ago (2016-06-28 18:27:57 UTC) #12
brettw
New algorithm fixes the problem and is very easy to follow.
4 years, 5 months ago (2016-06-28 18:28:20 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2095043005/60001
4 years, 5 months ago (2016-06-28 18:28:35 UTC) #14
scottmg
lgtm https://codereview.chromium.org/2095043005/diff/60001/tools/gn/parse_node_value_adapter.h File tools/gn/parse_node_value_adapter.h (right): https://codereview.chromium.org/2095043005/diff/60001/tools/gn/parse_node_value_adapter.h#newcode17 tools/gn/parse_node_value_adapter.h:17: // are very large (lits of many strings ...
4 years, 5 months ago (2016-06-28 18:32:44 UTC) #15
brettw
typo
4 years, 5 months ago (2016-06-28 20:00:53 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2095043005/80001
4 years, 5 months ago (2016-06-28 20:02:36 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/88717) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 5 months ago (2016-06-28 20:08:54 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2095043005/80001
4 years, 5 months ago (2016-06-28 20:24:13 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-06-28 21:41:27 UTC) #25
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 21:44:42 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c0ff88647c120f24203e50f7886f8e01a163c511
Cr-Commit-Position: refs/heads/master@{#402555}

Powered by Google App Engine
This is Rietveld 408576698