Changeset 243411 in webkit
- Timestamp:
- Mar 23, 2019 4:25:58 AM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r243387 r243411 1 2019-03-23 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK][WPE] check-webkit-style doesn't complain about identifiers with underscores in files under glib, gtk or wpe dirs 4 https://bugs.webkit.org/show_bug.cgi?id=196143 5 6 Reviewed by Michael Catanzaro. 7 8 Fix the check for the exception of identifiers starting with webkit_ in files under glib, gtk or wpe 9 directories. 10 11 * Scripts/webkitpy/style/checkers/cpp.py: 12 (check_identifier_name_in_declaration): 13 * Scripts/webkitpy/style/checkers/cpp_unittest.py: 14 (WebKitStyleTest.test_names): 15 1 16 2019-03-22 Philippe Normand <pnormand@igalia.com> 2 17 -
trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py
r243308 r243411 3586 3586 # Various exceptions to the rule: JavaScript op codes functions, const_iterator. 3587 3587 if (not (filename.find('JavaScriptCore') >= 0 and (modified_identifier.find('op_') >= 0 or modified_identifier.find('intrinsic_') >= 0)) 3588 and not (('gtk' in filename or 'glib' in filename or 'wpe' in filename) and modified_identifier.startswith('webkit_') >= 0)3588 and not (('gtk' in filename or 'glib' in filename or 'wpe' in filename) and modified_identifier.startswith('webkit_')) 3589 3589 and not modified_identifier.startswith('tst_') 3590 3590 and not modified_identifier.startswith('webkit_dom_object_') -
trunk/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
r243308 r243411 5373 5373 self.assert_lint('void webkit_web_view_load(int var1, int var2)', '', 'Source/Webkit/gtk/webkit/foo.cpp') 5374 5374 self.assert_lint('void webkit_web_view_load(int var1, int var2)', '', 'Source/Webkit2/UIProcess/gtk/foo.cpp') 5375 self.assert_lint('void my_function(int variable_1)', 5376 ['my_function' + name_underscore_error_message, 5377 'variable_1' + name_underscore_error_message], 5378 'Source/Webkit2/UIProcess/gtk/foo.cpp') 5375 5379 5376 5380 # Test that this doesn't also apply to files not in a 'gtk' directory.
Note: See TracChangeset
for help on using the changeset viewer.