Changeset 243411 in webkit


Ignore:
Timestamp:
Mar 23, 2019 4:25:58 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK][WPE] check-webkit-style doesn't complain about identifiers with underscores in files under glib, gtk or wpe dirs
https://bugs.webkit.org/show_bug.cgi?id=196143

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2019-03-23
Reviewed by Michael Catanzaro.

Fix the check for the exception of identifiers starting with webkit_ in files under glib, gtk or wpe
directories.

  • Scripts/webkitpy/style/checkers/cpp.py:

(check_identifier_name_in_declaration):

  • Scripts/webkitpy/style/checkers/cpp_unittest.py:

(WebKitStyleTest.test_names):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r243387 r243411  
     12019-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
    1162019-03-22  Philippe Normand  <pnormand@igalia.com>
    217
  • trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py

    r243308 r243411  
    35863586            # Various exceptions to the rule: JavaScript op codes functions, const_iterator.
    35873587            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_'))
    35893589                and not modified_identifier.startswith('tst_')
    35903590                and not modified_identifier.startswith('webkit_dom_object_')
  • trunk/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py

    r243308 r243411  
    53735373        self.assert_lint('void webkit_web_view_load(int var1, int var2)', '', 'Source/Webkit/gtk/webkit/foo.cpp')
    53745374        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')
    53755379
    53765380        # Test that this doesn't also apply to files not in a 'gtk' directory.
Note: See TracChangeset for help on using the changeset viewer.