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

Issue 2224343003: GN: Throw an error overwriting a nonempty scope. (Closed)

Created:
4 years, 4 months ago by brettw
Modified:
4 years, 4 months ago
Reviewers:
scottmg
CC:
chromium-reviews, Dirk Pranke, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GN: Throw an error overwriting a nonempty scope. Previously GN would throw an error if you assigned a nonempty list to another nonempty list. This is easy to mess up when you actually meant to append. However, it did not have this protection for "scope"-type values. Adds such protection to scope-type values, and add unit tests for both behaviors. Does some unit test cleanup for the operators unit tests to make them easier to write. BUG= Committed: https://crrev.com/56350de24ed370f955b299022e93229f8643ace8 Cr-Commit-Position: refs/heads/master@{#410874}

Patch Set 1 #

Patch Set 2 : Comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -117 lines) Patch
M mojo/public/tools/bindings/blink_bindings_configuration.gni View 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/chromium_bindings_configuration.gni View 1 1 chunk +3 lines, -0 lines 0 comments Download
M tools/gn/operators.cc View 2 chunks +41 lines, -22 lines 2 comments Download
M tools/gn/operators_unittest.cc View 11 chunks +132 lines, -85 lines 0 comments Download
M tools/gn/scope.h View 2 chunks +8 lines, -10 lines 0 comments Download
M tools/gn/scope.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
brettw
4 years, 4 months ago (2016-08-09 22:08:59 UTC) #3
scottmg
lgtm https://codereview.chromium.org/2224343003/diff/20001/tools/gn/operators.cc File tools/gn/operators.cc (right): https://codereview.chromium.org/2224343003/diff/20001/tools/gn/operators.cc#newcode332 tools/gn/operators.cc:332: if (old_value->type() == Value::LIST && right.type() == Value::LIST ...
4 years, 4 months ago (2016-08-09 22:20:33 UTC) #5
brettw
https://codereview.chromium.org/2224343003/diff/20001/tools/gn/operators.cc File tools/gn/operators.cc (right): https://codereview.chromium.org/2224343003/diff/20001/tools/gn/operators.cc#newcode332 tools/gn/operators.cc:332: if (old_value->type() == Value::LIST && right.type() == Value::LIST && ...
4 years, 4 months ago (2016-08-09 23:00:48 UTC) #6
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/2224343003/20001
4 years, 4 months ago (2016-08-09 23:02:16 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-09 23:44:12 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 23:45:54 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/56350de24ed370f955b299022e93229f8643ace8
Cr-Commit-Position: refs/heads/master@{#410874}

Powered by Google App Engine
This is Rietveld 408576698