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

Issue 984353002: Makes declared_arguments per toolchain (Closed)

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

Makes declared_arguments per toolchain This means each toolchain can declare arguments as it sees fit. Prior to this change each toolchain needed to declare the argument at exactly the same place, which is not always possible. For example, the following triggered an error: declare_args() { foo = 1 if (xxx) { foo = 2 } with xxx being specific to one toolchain. TEST=covered by test BUG=465029 R=brettw@chromium.org Committed: https://crrev.com/ca5ccceffa70d6a4e20cacaa12c44e4e9d0ebf2c Cr-Commit-Position: refs/heads/master@{#320753}

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : moar #

Patch Set 4 : merge 2 trunk #

Patch Set 5 : toolchain specific declared args #

Patch Set 6 : cleanup #

Patch Set 7 : cleanup #

Total comments: 5

Patch Set 8 : feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -52 lines) Patch
M tools/gn/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/args.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -10 lines 0 comments Download
M tools/gn/args.cc View 1 2 3 4 5 6 7 7 chunks +66 lines, -41 lines 1 comment Download
A tools/gn/args_unittest.cc View 1 2 3 4 5 6 7 1 chunk +41 lines, -0 lines 0 comments Download
M tools/gn/config_values_extractors.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (1 generated)
sky
5 years, 9 months ago (2015-03-08 01:24:10 UTC) #1
sky
https://codereview.chromium.org/984353002/diff/120001/tools/gn/args.h File tools/gn/args.h (right): https://codereview.chromium.org/984353002/diff/120001/tools/gn/args.h#newcode75 tools/gn/args.h:75: static bool VerifyAllOverridesUsed( I moved this to the private ...
5 years, 9 months ago (2015-03-13 20:43:13 UTC) #2
sky
I updated this as discussed. Args now stores declared arguments in a toolchain specific map.
5 years, 9 months ago (2015-03-13 20:43:46 UTC) #3
brettw
Thanks, just need to work on the override checking. https://codereview.chromium.org/984353002/diff/120001/tools/gn/args.cc File tools/gn/args.cc (right): https://codereview.chromium.org/984353002/diff/120001/tools/gn/args.cc#newcode175 tools/gn/args.cc:175: ...
5 years, 9 months ago (2015-03-14 05:14:32 UTC) #4
brettw
Also, need a better commit message.
5 years, 9 months ago (2015-03-14 05:15:04 UTC) #5
sky
https://codereview.chromium.org/984353002/diff/120001/tools/gn/args.cc File tools/gn/args.cc (right): https://codereview.chromium.org/984353002/diff/120001/tools/gn/args.cc#newcode175 tools/gn/args.cc:175: if (!VerifyAllOverridesUsed(all_overrides_, map_pair.second, err)) On 2015/03/14 05:14:32, brettw wrote: ...
5 years, 9 months ago (2015-03-16 16:20:45 UTC) #6
brettw
lgtm
5 years, 9 months ago (2015-03-16 17:19:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/984353002/140001
5 years, 9 months ago (2015-03-16 17:27:23 UTC) #9
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 9 months ago (2015-03-16 18:06:12 UTC) #10
commit-bot: I haz the power
5 years, 9 months ago (2015-03-16 18:07:00 UTC) #11
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ca5ccceffa70d6a4e20cacaa12c44e4e9d0ebf2c
Cr-Commit-Position: refs/heads/master@{#320753}

Powered by Google App Engine
This is Rietveld 408576698