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 1561693003: IWYU fixes for url/...

Created:
4 years, 11 months ago by Łukasz Anforowicz
Modified:
4 years, 11 months ago
CC:
chromium-reviews, jshin+watch_chromium.org, Nico
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IWYU fixes for url/... BUG=259043

Patch Set 1 : Unedited changes made by the IWYU tool. #

Total comments: 9

Patch Set 2 : Self-review. #

Total comments: 4

Patch Set 3 : Reintroduce includes required by Windows builds. #

Total comments: 1

Patch Set 4 : Added IWYU-pragma-keep in a few places. #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -29 lines) Patch
M url/DEPS View 1 1 chunk +1 line, -1 line 0 comments Download
M url/gurl.h View 2 chunks +4 lines, -1 line 6 comments Download
M url/gurl.cc View 1 chunk +1 line, -1 line 0 comments Download
M url/gurl_unittest.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M url/origin.h View 1 chunk +1 line, -1 line 0 comments Download
M url/origin.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M url/origin_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M url/scheme_host_port.cc View 1 chunk +1 line, -2 lines 0 comments Download
M url/scheme_host_port_unittest.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M url/third_party/mozilla/url_parse.h View 1 chunk +2 lines, -0 lines 0 comments Download
M url/third_party/mozilla/url_parse.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M url/url_canon_etc.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M url/url_canon_filesystemurl.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M url/url_canon_fileurl.cc View 1 2 3 1 chunk +4 lines, -2 lines 2 comments Download
M url/url_canon_host.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M url/url_canon_icu.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M url/url_canon_icu.cc View 1 1 chunk +5 lines, -0 lines 2 comments Download
M url/url_canon_icu_unittest.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M url/url_canon_internal.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M url/url_canon_internal.cc View 1 chunk +1 line, -3 lines 0 comments Download
M url/url_canon_ip.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M url/url_canon_ip.cc View 1 chunk +1 line, -0 lines 0 comments Download
M url/url_canon_mailtourl.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M url/url_canon_path.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M url/url_canon_pathurl.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M url/url_canon_query.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M url/url_canon_relative.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M url/url_canon_stdstring.h View 1 chunk +5 lines, -0 lines 0 comments Download
M url/url_canon_stdstring.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M url/url_canon_stdurl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M url/url_canon_unittest.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M url/url_parse_file.cc View 1 chunk +1 line, -0 lines 0 comments Download
M url/url_parse_unittest.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M url/url_util.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M url/url_util.cc View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M url/url_util_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
Łukasz Anforowicz
abarth@, could you please take a look? https://codereview.chromium.org/1561693003/diff/1/url/gurl.h File url/gurl.h (right): https://codereview.chromium.org/1561693003/diff/1/url/gurl.h#newcode24 url/gurl.h:24: This addition ...
4 years, 11 months ago (2016-01-07 00:16:17 UTC) #2
dcheng
Also, do you happen to have instructions for running this tool? https://codereview.chromium.org/1561693003/diff/60001/url/gurl.h File url/gurl.h (right): ...
4 years, 11 months ago (2016-01-07 00:25:41 UTC) #4
Łukasz Anforowicz
On 2016/01/07 00:25:41, dcheng wrote: > Also, do you happen to have instructions for running ...
4 years, 11 months ago (2016-01-07 00:44:53 UTC) #5
Łukasz Anforowicz
BTW: abarth@ + dcheng@ - please treat this CL as an experiment with IWYU tool. ...
4 years, 11 months ago (2016-01-07 00:46:33 UTC) #6
Avi (use Gerrit)
https://codereview.chromium.org/1561693003/diff/60001/url/gurl.h File url/gurl.h (left): https://codereview.chromium.org/1561693003/diff/60001/url/gurl.h#oldcode9 url/gurl.h:9: :( Can we not lose these newlines? There's a ...
4 years, 11 months ago (2016-01-07 01:11:03 UTC) #8
dcheng
https://codereview.chromium.org/1561693003/diff/60001/url/gurl.h File url/gurl.h (left): https://codereview.chromium.org/1561693003/diff/60001/url/gurl.h#oldcode9 url/gurl.h:9: On 2016/01/07 at 01:11:03, Avi wrote: > :( > ...
4 years, 11 months ago (2016-01-07 01:20:49 UTC) #9
Avi (use Gerrit)
On 2016/01/07 01:20:49, dcheng wrote: > https://codereview.chromium.org/1561693003/diff/60001/url/gurl.h > File url/gurl.h (left): > > https://codereview.chromium.org/1561693003/diff/60001/url/gurl.h#oldcode9 > ...
4 years, 11 months ago (2016-01-07 01:36:18 UTC) #10
Łukasz Anforowicz
On 2016/01/07 01:36:18, Avi wrote: > On 2016/01/07 01:20:49, dcheng wrote: > > https://codereview.chromium.org/1561693003/diff/60001/url/gurl.h > ...
4 years, 11 months ago (2016-01-07 04:45:43 UTC) #11
Nico
I'm pretty sure we don't want the iwyu pragma lines. Did you manually check that ...
4 years, 11 months ago (2016-01-08 00:34:26 UTC) #13
Łukasz Anforowicz
Hmmm... based on the feedback so far, it sounds that I should start thinking about ...
4 years, 11 months ago (2016-01-08 17:26:41 UTC) #14
Nico
https://code.google.com/p/chromium/issues/detail?id=242216 is similar too. In the past, we had hoped that iwyu will allow us ...
4 years, 11 months ago (2016-01-08 17:35:11 UTC) #15
dcheng
4 years, 11 months ago (2016-01-08 17:43:10 UTC) #16
On 2016/01/08 at 17:35:11, thakis wrote:
> https://code.google.com/p/chromium/issues/detail?id=242216 is similar too.
> 
> In the past, we had hoped that iwyu will allow us to _remove_ unnecessary
includes, which hopefully will help with build time (which should be pretty
quantifiable). New includes it adds are only for things that have been included
indirectly usually, so I'd expect these to not hurt compile time.

Another angle on this: if IWYU could somehow process just the standard set of
C/C++ system headers (e.g. stdio.h, string) and leave the others alone, that
would be kind of a nice improvement. I know avi@ hit all sorts of 'this file
didn't bother including stddef.h because basictypes.h did' fun. I expect
something similar to happen when we try to change scoped_ptr to a typedef.

Powered by Google App Engine
This is Rietveld 408576698