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

Issue 9297052: Include what you use for the files zone* (Closed)

Created:
8 years, 11 months ago by Yang
Modified:
8 years, 10 months ago
CC:
v8-dev
Visibility:
Public.

Description

Include what you use for the files zone* BUG= TEST= Committed: https://code.google.com/p/v8/source/detail?r=10543

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -3 lines) Patch
M src/zone.h View 2 chunks +7 lines, -0 lines 1 comment Download
M src/zone.cc View 1 chunk +3 lines, -2 lines 2 comments Download
M src/zone-inl.h View 1 chunk +9 lines, -1 line 3 comments Download

Messages

Total messages: 3 (0 generated)
Yang
PTAL. First attempt at this. For this file set it worked pretty well, for some ...
8 years, 11 months ago (2012-01-28 14:38:11 UTC) #1
Kevin Millikin (Chromium)
Thanks for doing this. My comments are about the order of the includes. Other than ...
8 years, 10 months ago (2012-01-30 09:25:45 UTC) #2
Yang
8 years, 10 months ago (2012-01-30 10:46:03 UTC) #3
http://codereview.chromium.org/9297052/diff/1/src/zone.cc
File src/zone.cc (right):

http://codereview.chromium.org/9297052/diff/1/src/zone.cc#newcode30
src/zone.cc:30: #include "allocation.h"
On 2012/01/30 09:25:45, Kevin Millikin wrote:
> You are welcome to leave allocation.h out since it comes to us via zone-inl.h
> (or put it in, I don't much care).
> 
> Please include headers in this order:
> 
> #include "v8.h"
> #include "zone-inl.h"
> 
> #include <string.h>
> #include "allocation.h"
> 
> The first block are those that (possibly) can't be reordered, and they are
> intentionally not alphabetized.  v8.h is first because it contains all the
> included that have circular dependencies included in just the right order.

Our presubmit script however says:
zone.cc:31:  Found C system header after other header. Should be: zone.h, c
system, c++ system, other.
I guess I'll move string.h to the top.

Powered by Google App Engine
This is Rietveld 408576698