https://bugs.webkit.org/show_bug.cgi?id=134428
Reviewed by Dan Bernstein.
* Scripts/webkitpy/style/checkers/cpp.py:
Allow "import" in addition to "include", so that the sort order of headers in ObjC files is checked.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170565
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-06-27 Tim Horton <timothy_horton@apple.com>
+
+ check-webkit-style should check the order of #imports as well as #includes
+ https://bugs.webkit.org/show_bug.cgi?id=134428
+
+ Reviewed by Dan Bernstein.
+
+ * Scripts/webkitpy/style/checkers/cpp.py:
+ Allow "import" in addition to "include", so that the sort order of headers in ObjC files is checked.
+
2014-06-27 Michał Pakuła vel Rutka <m.pakula@samsung.com>
[EFL] Remove efl-wk2 from baseline search path
check_enum_casing(clean_lines, line_number, enum_state, error)
-_RE_PATTERN_INCLUDE_NEW_STYLE = re.compile(r'#include +"[^/]+\.h"')
-_RE_PATTERN_INCLUDE = re.compile(r'^\s*#\s*include\s*([<"])([^>"]*)[>"].*$')
+_RE_PATTERN_INCLUDE_NEW_STYLE = re.compile(r'#(?:include|import) +"[^/]+\.h"')
+_RE_PATTERN_INCLUDE = re.compile(r'^\s*#\s*(?:include|import)\s*([<"])([^>"]*)[>"].*$')
# Matches the first component of a filename delimited by -s and _s. That is:
# _RE_FIRST_COMPONENT.match('foo').group(0) == 'foo'
# _RE_FIRST_COMPONENT.match('foo.cpp').group(0) == 'foo'