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

Issue 2148093002: GN: Use the correct defaults for templates invoked via target(). (Closed)

Created:
4 years, 5 months ago by brettw
Modified:
4 years, 5 months ago
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

GN: Use the correct defaults for templates invoked via target(). Previously calling target("foo", "bar") where "foo" is a template applied the defaults for the function named "target" (since this is the function call) rather than "foo". This change properly applies the defaults for "foo" in this case. BUG=624564 Committed: https://crrev.com/af92718f5526ce94ea8fcb4118f850fb9a7517b3 Cr-Commit-Position: refs/heads/master@{#405547}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -7 lines) Patch
M tools/gn/functions.cc View 1 chunk +4 lines, -3 lines 2 comments Download
M tools/gn/functions_target.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/functions_target_unittest.cc View 1 chunk +34 lines, -0 lines 0 comments Download
M tools/gn/template.h View 1 chunk +4 lines, -1 line 0 comments Download
M tools/gn/template.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
brettw
4 years, 5 months ago (2016-07-13 22:14:46 UTC) #2
brettw
-> Bruce, I think Dirk is busy.
4 years, 5 months ago (2016-07-14 17:25:45 UTC) #8
brucedawson
lgtm with one nit. https://codereview.chromium.org/2148093002/diff/1/tools/gn/functions.cc File tools/gn/functions.cc (right): https://codereview.chromium.org/2148093002/diff/1/tools/gn/functions.cc#newcode1039 tools/gn/functions.cc:1039: std::string template_name = function->function().value().as_string(); Should ...
4 years, 5 months ago (2016-07-14 17:39:26 UTC) #9
Dirk Pranke
lgtm
4 years, 5 months ago (2016-07-14 19:14:25 UTC) #11
brettw
https://codereview.chromium.org/2148093002/diff/1/tools/gn/functions.cc File tools/gn/functions.cc (right): https://codereview.chromium.org/2148093002/diff/1/tools/gn/functions.cc#newcode1039 tools/gn/functions.cc:1039: std::string template_name = function->function().value().as_string(); I don't actually like "const" ...
4 years, 5 months ago (2016-07-14 19:26:38 UTC) #12
brucedawson
I *love* const for local variables, but we'll have to agree to disagree, or debate ...
4 years, 5 months ago (2016-07-14 19:36:53 UTC) #13
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/2148093002/1
4 years, 5 months ago (2016-07-14 19:38:37 UTC) #15
brettw
On 2016/07/14 19:36:53, brucedawson wrote: > I *love* const for local variables, but we'll have ...
4 years, 5 months ago (2016-07-14 19:39:06 UTC) #16
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-14 19:44:14 UTC) #17
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 19:44:28 UTC) #18
brucedawson
On 2016/07/14 19:39:06, brettw (ping after 24h) wrote: > On 2016/07/14 19:36:53, brucedawson wrote: > ...
4 years, 5 months ago (2016-07-14 19:45:12 UTC) #19
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 19:46:35 UTC) #21
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/af92718f5526ce94ea8fcb4118f850fb9a7517b3
Cr-Commit-Position: refs/heads/master@{#405547}

Powered by Google App Engine
This is Rietveld 408576698