Changeset 216013 in webkit
- Timestamp:
- May 1, 2017, 6:10:14 AM (8 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r216006 r216013 1 2017-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 1 18 2017-05-01 Carlos Garcia Campos <cgarcia@igalia.com> 2 19 -
trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py
r216000 r216013 2741 2741 line = clean_lines.elided[line_number] 2742 2742 2743 matched = search(r'\[get( [^\s]+)Class\(\)\s+alloc\]', line)2743 matched = search(r'\[get(\w+)Class\(\)\s+alloc\]', line) 2744 2744 if matched: 2745 2745 error(line_number, 'runtime/soft-linked-alloc', 4, … … 3921 3921 'runtime/rtti', 3922 3922 'runtime/sizeof', 3923 'runtime/soft-linked-alloc', 3923 3924 'runtime/string', 3924 3925 'runtime/threadsafe_fn',
Note:
See TracChangeset
for help on using the changeset viewer.