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

Issue 1207893002: Clean up a few includes, introduce iwyu. (Closed)

Created:
5 years, 6 months ago by bungeman-skia
Modified:
5 years, 4 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Clean up a few includes, introduce iwyu. The current include-what-you-use with current clang is much less noisy and more useful than it has been in the past. This change introduces a few IWYU directives (which are helpful documentation for humans as well) and fixes a few sets of includes. Committed: https://skia.googlesource.com/skia/+/f20488b4f2139e6ca09fee7e39b731dd8ab467db

Patch Set 1 #

Patch Set 2 : I can't read output. #

Patch Set 3 : Remove unwanted change I introduced myself. #

Patch Set 4 : Just a little more cleanup. #

Total comments: 6

Patch Set 5 : Comments. #

Total comments: 3

Patch Set 6 : There are people on the internet who are wrong! #

Total comments: 1

Patch Set 7 : Reordered includes, additional iwyu changes. #

Total comments: 1

Patch Set 8 : Avoid hiding includes really deep when we don't need it. #

Total comments: 2

Patch Set 9 : stdlib #

Patch Set 10 : One more atoi. #

Patch Set 11 : Postpone stdlib cleanup. #

Total comments: 15

Patch Set 12 : SkTypes to export stddef. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -60 lines) Patch
M include/core/SkAtomics.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M include/core/SkMutex.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M include/core/SkPostConfig.h View 1 2 3 4 5 6 7 2 chunks +1 line, -8 lines 0 comments Download
M include/core/SkTypes.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M include/ports/SkFontMgr_indirect.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -3 lines 0 comments Download
M include/ports/SkRemotableFontMgr.h View 1 2 3 4 5 6 3 chunks +1 line, -5 lines 0 comments Download
M src/fonts/SkFontMgr_indirect.cpp View 1 2 3 4 5 6 1 chunk +9 lines, -4 lines 0 comments Download
M src/ports/SkDebug_stdio.cpp View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M src/ports/SkDiscardableMemory_none.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M src/ports/SkFontConfigInterface_direct.cpp View 1 2 3 4 5 6 1 chunk +10 lines, -6 lines 0 comments Download
M src/ports/SkFontHost_fontconfig.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M src/ports/SkFontMgr_android.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +11 lines, -10 lines 0 comments Download
M src/ports/SkFontMgr_android_parser.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M src/ports/SkFontMgr_android_parser.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M src/ports/SkFontMgr_custom.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -7 lines 0 comments Download
M src/ports/SkFontMgr_fontconfig.cpp View 1 2 3 4 5 6 1 chunk +10 lines, -2 lines 0 comments Download
M src/ports/SkFontMgr_fontconfig_factory.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M src/ports/SkGlobalInitialization_default.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M src/ports/SkMemory_malloc.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M src/ports/SkOSFile_posix.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M src/ports/SkOSFile_stdio.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkTime_Unix.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 58 (21 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207893002/1
5 years, 6 months ago (2015-06-24 21:55:20 UTC) #2
commit-bot: I haz the power
Dry run: Exceeded global retry quota
5 years, 6 months ago (2015-06-24 21:56:53 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207893002/20001
5 years, 6 months ago (2015-06-24 22:03:24 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207893002/40001
5 years, 6 months ago (2015-06-24 22:15:35 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207893002/60001
5 years, 6 months ago (2015-06-24 22:42:25 UTC) #10
bungeman-skia
I started working on this because I'm planning on splitting a few really big files ...
5 years, 6 months ago (2015-06-24 22:49:17 UTC) #12
mtklein
Neat neat neat. Can you add a script to tools/ or bin/ or something that ...
5 years, 6 months ago (2015-06-24 22:52:01 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-24 22:52:54 UTC) #15
reed1
tell me more in person ... https://codereview.chromium.org/1207893002/diff/60001/src/ports/SkDebug_stdio.cpp File src/ports/SkDebug_stdio.cpp (right): https://codereview.chromium.org/1207893002/diff/60001/src/ports/SkDebug_stdio.cpp#newcode8 src/ports/SkDebug_stdio.cpp:8: #include <stdarg.h> This ...
5 years, 6 months ago (2015-06-24 23:20:31 UTC) #16
bungeman-skia
So what I'm currently doing to run this is to build current tip of tree ...
5 years, 6 months ago (2015-06-25 14:45:06 UTC) #17
bungeman-skia
https://codereview.chromium.org/1207893002/diff/80001/src/ports/SkDebug_stdio.cpp File src/ports/SkDebug_stdio.cpp (right): https://codereview.chromium.org/1207893002/diff/80001/src/ports/SkDebug_stdio.cpp#newcode13 src/ports/SkDebug_stdio.cpp:13: SK_API void SkDebugf(const char format[], ...) { This make ...
5 years, 6 months ago (2015-06-25 15:11:34 UTC) #18
bungeman-skia
It's actually rather straight forward (I think) to make iwyu to be more like what ...
5 years, 6 months ago (2015-06-25 20:38:47 UTC) #19
bungeman-skia
https://codereview.chromium.org/1207893002/diff/80001/src/ports/SkDebug_stdio.cpp File src/ports/SkDebug_stdio.cpp (right): https://codereview.chromium.org/1207893002/diff/80001/src/ports/SkDebug_stdio.cpp#newcode13 src/ports/SkDebug_stdio.cpp:13: SK_API void SkDebugf(const char format[], ...) { On 2015/06/25 ...
5 years, 6 months ago (2015-06-25 21:27:26 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207893002/100001
5 years, 6 months ago (2015-06-25 22:29:29 UTC) #22
bungeman-skia
So I think I'd like to commit these changes, now that we understand what to ...
5 years, 6 months ago (2015-06-25 22:32:25 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-25 22:35:31 UTC) #25
reed1
I'm not against this as an experiment, but if you want to really change the ...
5 years, 6 months ago (2015-06-26 14:00:13 UTC) #26
bungeman-skia
On 2015/06/26 14:00:13, reed1 wrote: > I'm not against this as an experiment, but if ...
5 years, 6 months ago (2015-06-26 15:01:42 UTC) #27
mtklein
On 2015/06/26 15:01:42, bungeman1 wrote: > On 2015/06/26 14:00:13, reed1 wrote: > > I'm not ...
5 years, 6 months ago (2015-06-26 15:24:32 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207893002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1207893002/140001
5 years, 4 months ago (2015-07-28 19:35:08 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot/builds/2293)
5 years, 4 months ago (2015-07-28 19:36:04 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207893002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1207893002/160001
5 years, 4 months ago (2015-07-28 19:53:22 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot/builds/581) Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on ...
5 years, 4 months ago (2015-07-28 19:54:09 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207893002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1207893002/180001
5 years, 4 months ago (2015-07-28 19:59:48 UTC) #38
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot/builds/583) Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on ...
5 years, 4 months ago (2015-07-28 20:00:46 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207893002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1207893002/200001
5 years, 4 months ago (2015-07-28 20:12:19 UTC) #42
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-07-28 20:20:03 UTC) #44
bungeman-skia
At Patch Set 11, perhaps this is a little more straight forward and less controversial. ...
5 years, 4 months ago (2015-07-28 21:20:32 UTC) #45
mtklein
Sorry, I realize I both marked a bunch of redundant stddef.h questions and left off ...
5 years, 4 months ago (2015-07-28 22:04:19 UTC) #46
bungeman-skia
I suppose stddef.h isn't too big. Personally I dislike all this forced inclusion of headers ...
5 years, 4 months ago (2015-07-28 22:48:10 UTC) #47
reed1
https://codereview.chromium.org/1207893002/diff/200001/include/core/SkTypes.h File include/core/SkTypes.h (right): https://codereview.chromium.org/1207893002/diff/200001/include/core/SkTypes.h#newcode25 include/core/SkTypes.h:25: #include <stdlib.h> just curious: what do these two bring ...
5 years, 4 months ago (2015-07-29 14:40:39 UTC) #48
bungeman-skia
Added stddef to SkTypes exports, cleaned up for that. See more comments below. https://codereview.chromium.org/1207893002/diff/200001/include/core/SkTypes.h File ...
5 years, 4 months ago (2015-07-29 16:46:23 UTC) #49
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207893002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1207893002/220001
5 years, 4 months ago (2015-07-29 17:30:35 UTC) #51
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-07-29 17:38:20 UTC) #53
mtklein
lgtm https://codereview.chromium.org/1207893002/diff/200001/src/ports/SkDiscardableMemory_none.cpp File src/ports/SkDiscardableMemory_none.cpp (right): https://codereview.chromium.org/1207893002/diff/200001/src/ports/SkDiscardableMemory_none.cpp#newcode11 src/ports/SkDiscardableMemory_none.cpp:11: #include <stddef.h> On 2015/07/29 16:46:23, bungeman1 wrote: > ...
5 years, 4 months ago (2015-07-29 18:05:02 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207893002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1207893002/220001
5 years, 4 months ago (2015-07-29 18:49:00 UTC) #57
commit-bot: I haz the power
5 years, 4 months ago (2015-07-29 18:49:43 UTC) #58
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://skia.googlesource.com/skia/+/f20488b4f2139e6ca09fee7e39b731dd8ab467db

Powered by Google App Engine
This is Rietveld 408576698