Changeset 216013 in webkit


Ignore:
Timestamp:
May 1, 2017, 6:10:14 AM (8 years ago)
Author:
ddkilzer@apple.com
Message:

REGRESSION (r216000): test-webkitpy fails after adding new soft-linked class checker

Unreviewed.

Follow-up fix for:
[Cocoa] Have check-webkit-style advise against use of [get…Class() alloc]
https://bugs.webkit.org/show_bug.cgi?id=171486

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

(check_soft_link_class_alloc): Use (\w+) instead of ([\s]+) to
match and capture the function name. The latter also mistakenly
matches C-preprocessor directives.
(CppChecker.categories): Add 'runtime/soft-linked-alloc', which
is a requirement for the CppChecker class.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r216006 r216013  
     12017-05-01  David Kilzer  <ddkilzer@apple.com>
     2
     3        REGRESSION (r216000): test-webkitpy fails after adding new soft-linked class checker
     4
     5        Unreviewed.
     6
     7        Follow-up fix for:
     8        [Cocoa] Have check-webkit-style advise against use of [get…Class() alloc]
     9        https://bugs.webkit.org/show_bug.cgi?id=171486
     10
     11        * Scripts/webkitpy/style/checkers/cpp.py:
     12        (check_soft_link_class_alloc): Use (\w+) instead of ([^\s]+) to
     13        match and capture the function name.  The latter also mistakenly
     14        matches C-preprocessor directives.
     15        (CppChecker.categories): Add 'runtime/soft-linked-alloc', which
     16        is a requirement for the CppChecker class.
     17
    1182017-05-01  Carlos Garcia Campos  <cgarcia@igalia.com>
    219
  • trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py

    r216000 r216013  
    27412741    line = clean_lines.elided[line_number]
    27422742
    2743     matched = search(r'\[get([^\s]+)Class\(\)\s+alloc\]', line)
     2743    matched = search(r'\[get(\w+)Class\(\)\s+alloc\]', line)
    27442744    if matched:
    27452745        error(line_number, 'runtime/soft-linked-alloc', 4,
     
    39213921        'runtime/rtti',
    39223922        'runtime/sizeof',
     3923        'runtime/soft-linked-alloc',
    39233924        'runtime/string',
    39243925        'runtime/threadsafe_fn',
Note: See TracChangeset for help on using the changeset viewer.