Bug 205840 - check-webkit-style: bmalloc doesn't use config.h
Summary: check-webkit-style: bmalloc doesn't use config.h
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Basuke Suzuki
URL:
Keywords: InRadar
Depends on:
Blocks: 210734
  Show dependency treegraph
 
Reported: 2020-01-06 15:42 PST by Basuke Suzuki
Modified: 2020-04-19 22:59 PDT (History)
7 users (show)

See Also:


Attachments
PATCH (4.73 KB, patch)
2020-01-06 16:40 PST, Basuke Suzuki
no flags Details | Formatted Diff | Diff
PATCH (8.78 KB, patch)
2020-01-06 17:09 PST, Basuke Suzuki
no flags Details | Formatted Diff | Diff
PATCH (8.79 KB, patch)
2020-01-06 17:20 PST, Basuke Suzuki
jbedard: review+
Details | Formatted Diff | Diff
PATCH (8.79 KB, patch)
2020-01-07 10:18 PST, Basuke Suzuki
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Basuke Suzuki 2020-01-06 15:42:24 PST
It complains about [build/include_order] for bmalloc files.

> $ Tools/Scripts/check-webkit-style Source/bmalloc/bmalloc/Heap.cpp
> ERROR: Source/bmalloc/bmalloc/Heap.cpp:26:  You should not add a blank line before implementation file's own header.  [build/include_order] [4]
Comment 1 Basuke Suzuki 2020-01-06 16:40:14 PST
Created attachment 386912 [details]
PATCH
Comment 2 Basuke Suzuki 2020-01-06 17:09:46 PST
Created attachment 386916 [details]
PATCH
Comment 3 Basuke Suzuki 2020-01-06 17:20:55 PST
Created attachment 386919 [details]
PATCH

wrong email address was used in ChangeLog.
Comment 4 Jonathan Bedard 2020-01-07 09:09:34 PST
Comment on attachment 386919 [details]
PATCH

View in context: https://bugs.webkit.org/attachment.cgi?id=386919&action=review

> Tools/Scripts/webkitpy/style/checkers/cpp.py:312
> +          has_config_header: Whether framework uses config.h or not.

I don't think you mean framework here, I think this should just be 'Whether the header includes config.h'. bmalloc isn't a framework in the strictest sense, we could probably use 'project' too, I suppose.
Comment 5 Basuke Suzuki 2020-01-07 10:17:04 PST
(In reply to Jonathan Bedard from comment #4)
> Comment on attachment 386919 [details]
> PATCH
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=386919&action=review
> 
> > Tools/Scripts/webkitpy/style/checkers/cpp.py:312
> > +          has_config_header: Whether framework uses config.h or not.
> 
> I don't think you mean framework here, I think this should just be 'Whether
> the header includes config.h'. bmalloc isn't a framework in the strictest
> sense, we could probably use 'project' too, I suppose.

Yes, "project" seems reasonable. Thanks.
Comment 6 Basuke Suzuki 2020-01-07 10:18:54 PST
Created attachment 386987 [details]
PATCH
Comment 7 WebKit Commit Bot 2020-01-07 11:04:08 PST
Comment on attachment 386987 [details]
PATCH

Clearing flags on attachment: 386987

Committed r254140: <https://trac.webkit.org/changeset/254140>
Comment 8 WebKit Commit Bot 2020-01-07 11:04:10 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2020-01-07 11:05:18 PST
<rdar://problem/58380310>