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

Issue 946043002: GN header checker enhancements. (Closed)

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

Description

GN header checker enhancements. This makes the check_includes flag work the way one would expect. Previously we would only skip include checking if all targets that include a file opt out. This was coming up in the Android Java enum generator where a header file was being processed by a script (so includes don't matter and there are no deps) but that header was also listed as a source in a different target with header checking enabled (which is always the case for this example). Improves error messaging for cross-compiling. Previously if you were cross-compiling and forgot a dependency on e.g. base, you'd get a message "you must depend on "//base:base" or "//base:base" because it found the files in two different toolchain builds of base. This patch prunes such duplicates when possible, and turns on toolchain labels if things aren't all in the same toolchain. BUG= Committed: https://crrev.com/f16d8d8d34fb9403852423df5adcf741b9bb8beb Cr-Commit-Position: refs/heads/master@{#317446}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -33 lines) Patch
M tools/gn/header_checker.h View 1 chunk +8 lines, -0 lines 0 comments Download
M tools/gn/header_checker.cc View 5 chunks +91 lines, -32 lines 2 comments Download
M tools/gn/label.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (2 generated)
brettw
5 years, 10 months ago (2015-02-20 22:25:00 UTC) #2
scottmg
lgtm https://codereview.chromium.org/946043002/diff/1/tools/gn/header_checker.cc File tools/gn/header_checker.cc (right): https://codereview.chromium.org/946043002/diff/1/tools/gn/header_checker.cc#newcode121 tools/gn/header_checker.cc:121: return a->label().dir() == b->label().dir() && maybe GetWithNoToolchain() and ...
5 years, 10 months ago (2015-02-20 22:41:40 UTC) #3
brettw
https://codereview.chromium.org/946043002/diff/1/tools/gn/header_checker.cc File tools/gn/header_checker.cc (right): https://codereview.chromium.org/946043002/diff/1/tools/gn/header_checker.cc#newcode121 tools/gn/header_checker.cc:121: return a->label().dir() == b->label().dir() && On 2015/02/20 22:41:40, scottmg ...
5 years, 10 months ago (2015-02-20 22:50:03 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/946043002/1
5 years, 10 months ago (2015-02-20 22:50:52 UTC) #6
tfarina
Looking forward to see this rolling. With this in I will probably be able to ...
5 years, 10 months ago (2015-02-21 00:25:36 UTC) #7
brettw
BTW enabling more "gn checks" might be increasingly difficult when cross-compiling (e.g. Android). If you ...
5 years, 10 months ago (2015-02-21 00:27:44 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 10 months ago (2015-02-21 00:41:21 UTC) #9
commit-bot: I haz the power
5 years, 10 months ago (2015-02-21 00:42:44 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f16d8d8d34fb9403852423df5adcf741b9bb8beb
Cr-Commit-Position: refs/heads/master@{#317446}

Powered by Google App Engine
This is Rietveld 408576698