Bug 65372
Summary: | check-webkit-style complains about missing config.h in files from Tools/ | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ademar Reis <ademar> |
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | dpranke, eric, kbalazs |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Ademar Reis
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Balazs Kelemen
I agree, it's quite annoying.
David Levin
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.