Bug 32022 - check-webkit-style complains about #imports with / in them
Summary: check-webkit-style complains about #imports with / in them
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-01 07:57 PST by Eric Seidel (no email)
Modified: 2009-12-01 08:46 PST (History)
5 users (show)

See Also:


Attachments
Patch (2.29 KB, patch)
2009-12-01 08:27 PST, Adam Barth
eric: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2009-12-01 07:57:44 PST
check-webkit-style complains about #imports with / in them

https://bugs.webkit.org/show_bug.cgi?id=31915#c4

I expect it has special exclusion rules for #include, but that they're missing for #import in this case.
Comment 1 Adam Barth 2009-12-01 08:18:24 PST
Investigating.
Comment 2 Adam Barth 2009-12-01 08:27:49 PST
Created attachment 44081 [details]
Patch
Comment 3 WebKit Review Bot 2009-12-01 08:28:43 PST
style-queue ran check-webkit-style on attachment 44081 [details] without any errors.
Comment 4 Eric Seidel (no email) 2009-12-01 08:30:40 PST
Comment on attachment 44081 [details]
Patch

I think I would have written that as:

     if match(r'\s*#\s*(include|import)', line):

Otherwise it looks OK.
Comment 5 Adam Barth 2009-12-01 08:46:59 PST
Committed r51541: <http://trac.webkit.org/changeset/51541>