Changeset 67722 in webkit


Ignore:
Timestamp:
Sep 17, 2010 10:20:13 AM (14 years ago)
Author:
Martin Robinson
Message:

2010-09-17 Martin Robinson <mrobinson@igalia.com>

Reviewed by Oliver Hunt.

Style bot complains about cairo forward declaration naming
https://bugs.webkit.org/show_bug.cgi?id=45867

Exclude Cairo forward declarations from indentifiers with underscores checks.

  • Scripts/webkitpy/style/checkers/cpp.py: Add exclusion for Cairo forward-declarations.
  • Scripts/webkitpy/style/checkers/cpp_unittest.py: Add some tests for this.
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r67692 r67722  
     12010-09-17  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        Style bot complains about cairo forward declaration naming
     6        https://bugs.webkit.org/show_bug.cgi?id=45867
     7
     8        Exclude Cairo forward declarations from indentifiers with underscores checks.
     9
     10        * Scripts/webkitpy/style/checkers/cpp.py: Add exclusion for Cairo forward-declarations.
     11        * Scripts/webkitpy/style/checkers/cpp_unittest.py: Add some tests for this.
     12
    1132010-09-16  Kinuko Yasuda  <kinuko@chromium.org>
    214
  • trunk/WebKitTools/Scripts/webkitpy/style/checkers/cpp.py

    r64718 r67722  
    25202520                and not modified_identifier.startswith('NP_')
    25212521                and not modified_identifier.startswith('qt_')
     2522                and not modified_identifier.startswith('cairo_')
    25222523                and not modified_identifier.find('::qt_') >= 0
    25232524                and not modified_identifier == "const_iterator"):
  • trunk/WebKitTools/Scripts/webkitpy/style/checkers/cpp_unittest.py

    r64718 r67722  
    37043704        self.assert_lint('void qt_drt_is_awesome(int var1, int var2);', '')
    37053705
     3706        # Cairo forward-declarations should not be a failure.
     3707        self.assert_lint('typedef struct _cairo cairo_t;', '')
     3708        self.assert_lint('typedef struct _cairo_surface cairo_surface_t;', '')
     3709        self.assert_lint('typedef struct _cairo_scaled_font cairo_scaled_font_t;', '')
     3710
    37063711        # NPAPI functions that start with NPN_, NPP_ or NP_ are allowed.
    37073712        self.assert_lint('void NPN_Status(NPP, const char*)', '')
Note: See TracChangeset for help on using the changeset viewer.