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

Issue 1007963003: Fixes to {} handling in GN. (Closed)

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

Description

Fixes to {} handling in GN. This disallows standalone {} blocks. Fortunately, we did not use these in the Chrome build. This eliminates the ambiguity of whether foo("bar") {} is a function that takes a block (like a target definition) or a standalone function followed by a standalone block. Previously we would put the block on the function if a function preceeded it, or keep the block standalone if there wasn't a function. Additionally, functions that weren't expecting a block would silently ignore it, which produced some weird cases. This additionally adds checks for functions that don't expect blocks. BUG=434519 R=scottmg@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/989adc8450ef29ee2c902724323e68aa50e466b0

Patch Set 1 #

Patch Set 2 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -27 lines) Patch
M tools/gn/functions.cc View 3 chunks +31 lines, -0 lines 0 comments Download
M tools/gn/functions_unittest.cc View 1 chunk +33 lines, -0 lines 0 comments Download
M tools/gn/parse_tree_unittest.cc View 3 chunks +8 lines, -3 lines 0 comments Download
M tools/gn/parser.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M tools/gn/parser_unittest.cc View 2 chunks +15 lines, -19 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
brettw
5 years, 9 months ago (2015-03-13 21:55:19 UTC) #2
scottmg
lgtm
5 years, 9 months ago (2015-03-13 21:58:02 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1007963003/1
5 years, 9 months ago (2015-03-13 23:00:44 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/33566)
5 years, 9 months ago (2015-03-13 23:47:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1007963003/1
5 years, 9 months ago (2015-03-14 05:07:38 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/45100)
5 years, 9 months ago (2015-03-14 05:51:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1007963003/1
5 years, 9 months ago (2015-03-14 17:30:38 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/33693)
5 years, 9 months ago (2015-03-14 18:13:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1007963003/20001
5 years, 9 months ago (2015-03-16 17:02:21 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/33918)
5 years, 9 months ago (2015-03-16 17:49:50 UTC) #20
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/989adc8450ef29ee2c902724323e68aa50e466b0 Cr-Commit-Position: refs/heads/master@{#320749}
5 years, 9 months ago (2015-03-16 17:54:32 UTC) #21
brettw
5 years, 9 months ago (2015-03-16 17:54:43 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
989adc8450ef29ee2c902724323e68aa50e466b0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698