Changeset 52016 in webkit


Ignore:
Timestamp:
Dec 11, 2009 12:50:47 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-11 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

[check-webkit-style] False positive for tst_QWebFrame
https://bugs.webkit.org/show_bug.cgi?id=32436

Add an exception for function names that start with "tst_". These are
used by the Qt unit testing framework.

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

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r51987 r52016  
     12009-12-11  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [check-webkit-style] False positive for tst_QWebFrame
     6        https://bugs.webkit.org/show_bug.cgi?id=32436
     7
     8        Add an exception for function names that start with "tst_".  These are
     9        used by the Qt unit testing framework.
     10
     11        * Scripts/modules/cpp_style.py:
     12        * Scripts/modules/cpp_style_unittest.py:
     13
    1142009-12-11  Simon Hausmann  <hausmann@webkit.org>, Kim Grönholm  <kim.gronholm@nomovok.com>
    215
  • trunk/WebKitTools/Scripts/modules/cpp_style.py

    r51876 r52016  
    27382738            # Various exceptions to the rule: JavaScript op codes functions, const_iterator.
    27392739            if (not (filename.find('JavaScriptCore') >= 0 and modified_identifier.find('_op_') >= 0)
     2740                and not modified_identifier.startswith('tst_')
    27402741                and not modified_identifier == "const_iterator"):
    27412742                error(filename, line_number, 'readability/naming', 4, identifier + " is incorrectly named. Don't use underscores in your identifier names.")
  • trunk/WebKitTools/Scripts/modules/cpp_style_unittest.py

    r51876 r52016  
    37043704        self.assert_lint('void this_op_code(int var1, int var2)', 'this_op_code' + name_error_message)
    37053705
     3706        # There is an exception for some unit tests that begin with "tst_".
     3707        self.assert_lint('void tst_QWebFrame::arrayObjectEnumerable(int var1, int var2)', '')
     3708
    37063709        # const_iterator is allowed as well.
    37073710        self.assert_lint('typedef VectorType::const_iterator const_iterator;', '')
Note: See TracChangeset for help on using the changeset viewer.