Bug 65372

Summary: check-webkit-style complains about missing config.h in files from Tools/
Product: WebKit Reporter: Ademar Reis <ademar>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: dpranke, eric, kbalazs
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Ademar Reis
Reported 2011-07-29 06:18:08 PDT
We usually don't use WebCore's config.h in source files from Tools/ (it's not even in the include path most of the time) but check-webkit-style complains. See for example: https://bugs.webkit.org/show_bug.cgi?id=65328#c11 """ Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Tools/ChangeLog', u'Tools/QtTestBrowser/Qt..." exit_code: 1 Tools/QtTestBrowser/cookiejar.cpp:28: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 1 in 7 files """
Attachments
Balazs Kelemen
Comment 1 2012-03-13 13:29:02 PDT
I agree, it's quite annoying.
David Levin
Comment 2 2012-03-13 13:44:48 PDT
fwiw, here's the code that implements the checks: http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py#L275 I won't have time to look at this in the foreseeable future. My time on WebKit is *extremely* limited these days.
Note You need to log in before you can comment on or make changes to this bug.