Changeset 53380 in webkit


Ignore:
Timestamp:
Jan 17, 2010 5:49:39 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-17 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

style-queue complains about missing #include of config.h for non-WebCore projects
https://bugs.webkit.org/show_bug.cgi?id=33170

WebKitAPITests are consumers of the WebKit API and therefore do not
need to follow the same include discipline as the rest of WebKit. This
patch exempts them from the include checks.

  • Scripts/webkitpy/style/cpp_style.py:
  • Scripts/webkitpy/style/cpp_style_unittest.py:
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r53379 r53380  
     12010-01-17  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        style-queue complains about missing #include of config.h for non-WebCore projects
     6        https://bugs.webkit.org/show_bug.cgi?id=33170
     7
     8        WebKitAPITests are consumers of the WebKit API and therefore do not
     9        need to follow the same include discipline as the rest of WebKit.  This
     10        patch exempts them from the include checks.
     11
     12        * Scripts/webkitpy/style/cpp_style.py:
     13        * Scripts/webkitpy/style/cpp_style_unittest.py:
     14
    1152010-01-17  Adam Barth  <abarth@webkit.org>
    216
  • trunk/WebKitTools/Scripts/webkitpy/style/cpp_style.py

    r53374 r53380  
    21092109    """
    21102110
     2111    if filename.find('WebKitTools/WebKitAPITest/') >= 0:
     2112        # Files in this directory are consumers of the WebKit API and
     2113        # therefore do not follow the same header including discipline as
     2114        # WebCore.
     2115        return
     2116
    21112117    line = clean_lines.lines[line_number]
    21122118
  • trunk/WebKitTools/Scripts/webkitpy/style/cpp_style_unittest.py

    r53374 r53380  
    20282028                                         '')
    20292029
     2030    def test_webkit_api_test_excluded(self):
     2031        self.assert_language_rules_check('WebKitTools/WebKitAPITest/Test.h',
     2032                                         '#include "foo.h"\n',
     2033                                         '')
     2034
    20302035    def test_check_line_break_after_own_header(self):
    20312036        self.assert_language_rules_check('foo.cpp',
Note: See TracChangeset for help on using the changeset viewer.