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

Issue 2233893005: GN: Mark all variables used when defining a template. (Closed)

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

GN: Mark all variables used when defining a template. This exempts file-scoped values from used variable checking when a template is defined. This avoids spurious unused variable warnings at the expense of potentially missing unused variables in some cases. These warnings have tripped people up multiple times. The potential for missing actual unused values is pretty small, however, because most templates are defined in .gni files that don't have used variable checking (since they could be included into many different contexts). BUG=395883 Committed: https://crrev.com/ba1286d0e720ef723192e4a2af7e99d0516495d6 Cr-Commit-Position: refs/heads/master@{#411265}

Patch Set 1 #

Patch Set 2 : tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -0 lines) Patch
M tools/gn/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/function_template.cc View 1 chunk +19 lines, -0 lines 0 comments Download
A tools/gn/function_template_unittest.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (11 generated)
brettw
4 years, 4 months ago (2016-08-10 21:23:30 UTC) #2
Dirk Pranke
Does this address crbug.com/618866 as well?
4 years, 4 months ago (2016-08-10 21:31:18 UTC) #6
brettw
That's the same bug, I duped it.
4 years, 4 months ago (2016-08-10 21:32:17 UTC) #7
scottmg
lgtm with test added
4 years, 4 months ago (2016-08-10 21:56:33 UTC) #8
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/2233893005/20001
4 years, 4 months ago (2016-08-10 22:50:09 UTC) #13
Dirk Pranke
lgtm
4 years, 4 months ago (2016-08-11 00:08:45 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/275777)
4 years, 4 months ago (2016-08-11 01:50:38 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/2233893005/20001
4 years, 4 months ago (2016-08-11 03:23:25 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-11 04:33:34 UTC) #19
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 05:08:10 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ba1286d0e720ef723192e4a2af7e99d0516495d6
Cr-Commit-Position: refs/heads/master@{#411265}

Powered by Google App Engine
This is Rietveld 408576698