Changeset 52016 in webkit
- Timestamp:
- Dec 11, 2009 12:50:47 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r51987 r52016 1 2009-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 1 14 2009-12-11 Simon Hausmann <hausmann@webkit.org>, Kim Grönholm <kim.gronholm@nomovok.com> 2 15 -
trunk/WebKitTools/Scripts/modules/cpp_style.py
r51876 r52016 2738 2738 # Various exceptions to the rule: JavaScript op codes functions, const_iterator. 2739 2739 if (not (filename.find('JavaScriptCore') >= 0 and modified_identifier.find('_op_') >= 0) 2740 and not modified_identifier.startswith('tst_') 2740 2741 and not modified_identifier == "const_iterator"): 2741 2742 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 3704 3704 self.assert_lint('void this_op_code(int var1, int var2)', 'this_op_code' + name_error_message) 3705 3705 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 3706 3709 # const_iterator is allowed as well. 3707 3710 self.assert_lint('typedef VectorType::const_iterator const_iterator;', '')
Note: See TracChangeset
for help on using the changeset viewer.