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

Issue 2651023004: Display override values in GN args help. (Closed)

Created:
3 years, 11 months ago by brettw
Modified:
3 years, 11 months ago
Reviewers:
scottmg
CC:
chromium-reviews, Dirk Pranke, tfarina, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Display override values in GN args help. Previously "gn args --list" would display the default value only. Now that we have default_args in the .gn file, there are more places for the values to come from and this is confusing (because the default value isn't necessarily what you get). This change makes --list display both the current value and the default value, and the locations of the definitions for each. So when default_args apply, you can see where the value is set. The same applies to args set in the args.gn file for a build. It looks like this: is_debug Current value = false From //.gn:15 Overridden from the default = true From //build/config/BUILDCONFIG.gn:154 The short mode --list --short has changed to list the current value rather than the default. Some obsolete help text was updated and some unused Args functions were removed. BUG=684169, 416139 Review-Url: https://codereview.chromium.org/2651023004 Cr-Commit-Position: refs/heads/master@{#445883} Committed: https://chromium.googlesource.com/chromium/src/+/9257ae440105ca90bd219517782cf55258fc830c

Patch Set 1 #

Patch Set 2 : Fix #

Total comments: 4

Patch Set 3 : Spellinc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -58 lines) Patch
M tools/gn/args.h View 4 chunks +18 lines, -7 lines 0 comments Download
M tools/gn/args.cc View 3 chunks +32 lines, -7 lines 0 comments Download
M tools/gn/command_args.cc View 1 2 4 chunks +69 lines, -44 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
brettw
Fix
3 years, 11 months ago (2017-01-24 19:22:16 UTC) #1
brettw
3 years, 11 months ago (2017-01-24 19:22:28 UTC) #3
scottmg
lgtm https://codereview.chromium.org/2651023004/diff/20001/tools/gn/args.h File tools/gn/args.h (right): https://codereview.chromium.org/2651023004/diff/20001/tools/gn/args.h#newcode30 tools/gn/args.h:30: ValueWithOverride(const Value& def_val); Should probably have an operator= ...
3 years, 11 months ago (2017-01-24 21:02:56 UTC) #9
brettw
https://codereview.chromium.org/2651023004/diff/20001/tools/gn/args.h File tools/gn/args.h (right): https://codereview.chromium.org/2651023004/diff/20001/tools/gn/args.h#newcode30 tools/gn/args.h:30: ValueWithOverride(const Value& def_val); On 2017/01/24 21:02:55, scottmg wrote: > ...
3 years, 11 months ago (2017-01-24 21:34:08 UTC) #10
scottmg
https://codereview.chromium.org/2651023004/diff/20001/tools/gn/args.h File tools/gn/args.h (right): https://codereview.chromium.org/2651023004/diff/20001/tools/gn/args.h#newcode30 tools/gn/args.h:30: ValueWithOverride(const Value& def_val); On 2017/01/24 21:34:08, brettw (ping after ...
3 years, 11 months ago (2017-01-24 21:41:37 UTC) #11
brettw
Spellinc
3 years, 11 months ago (2017-01-25 00:19:31 UTC) #12
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/2651023004/40001
3 years, 11 months ago (2017-01-25 00:20:58 UTC) #15
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 00:50:51 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/9257ae440105ca90bd219517782c...

Powered by Google App Engine
This is Rietveld 408576698