Changeset 170565 in webkit


Ignore:
Timestamp:
Jun 27, 2014, 10:51:13 PM (11 years ago)
Author:
timothy_horton@apple.com
Message:

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.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r170527 r170565  
     12014-06-27  Tim Horton  <timothy_horton@apple.com>
     2
     3        check-webkit-style should check the order of #imports as well as #includes
     4        https://bugs.webkit.org/show_bug.cgi?id=134428
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * Scripts/webkitpy/style/checkers/cpp.py:
     9        Allow "import" in addition to "include", so that the sort order of headers in ObjC files is checked.
     10
    1112014-06-27  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
    212
  • trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py

    r170152 r170565  
    27722772
    27732773
    2774 _RE_PATTERN_INCLUDE_NEW_STYLE = re.compile(r'#include +"[^/]+\.h"')
    2775 _RE_PATTERN_INCLUDE = re.compile(r'^\s*#\s*include\s*([<"])([^>"]*)[>"].*$')
     2774_RE_PATTERN_INCLUDE_NEW_STYLE = re.compile(r'#(?:include|import) +"[^/]+\.h"')
     2775_RE_PATTERN_INCLUDE = re.compile(r'^\s*#\s*(?:include|import)\s*([<"])([^>"]*)[>"].*$')
    27762776# Matches the first component of a filename delimited by -s and _s. That is:
    27772777#  _RE_FIRST_COMPONENT.match('foo').group(0) == 'foo'
Note: See TracChangeset for help on using the changeset viewer.