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

Issue 2552593002: gn: Add spelling suggestions for args.gn and --args. (Closed)

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

Description

gn: Add spelling suggestions for args.gn and --args. Demo: ERROR at build arg file (use "gn args <out_dir>" to edit):11:13: Build argument has no effect. use_clang = true ^--- Did you mean "is_clang"? The variable "use_clang" was set as a build argument but never appeared in a declare_args() block in any buildfile. To view all possible args, run "gn args --list <builddir>" BUG=none Committed: https://crrev.com/e591a5fb9a0015e7dcd71e566f2914233aaea35e Cr-Commit-Position: refs/heads/master@{#436572}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : no types #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -9 lines) Patch
M tools/gn/args.cc View 1 2 2 chunks +25 lines, -9 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
Nico
Isn't it pretty?! Now that I look at it, it's a bit strange to me ...
4 years ago (2016-12-04 23:46:11 UTC) #5
Nico
(I'm not sure if requiring matching types is a good idea – if someone used ...
4 years ago (2016-12-04 23:48:26 UTC) #6
brettw
I think I would prefer not to do the type checking. I know there are ...
4 years ago (2016-12-05 23:43:11 UTC) #9
brettw
Every once in a while I think about adding a null type for these cases ...
4 years ago (2016-12-05 23:45:11 UTC) #10
Nico
now without type checking
4 years ago (2016-12-06 03:20:36 UTC) #13
Nico
Another idea would be to count a mismatching type as an edit distance cost of ...
4 years ago (2016-12-06 03:35:23 UTC) #16
brettw
lgtm
4 years ago (2016-12-06 04:35:53 UTC) #17
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/2552593002/60001
4 years ago (2016-12-06 11:49:30 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-06 11:54:38 UTC) #22
commit-bot: I haz the power
4 years ago (2016-12-06 11:56:00 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e591a5fb9a0015e7dcd71e566f2914233aaea35e
Cr-Commit-Position: refs/heads/master@{#436572}

Powered by Google App Engine
This is Rietveld 408576698