Changeset 155535 in webkit
- Timestamp:
- Sep 11, 2013 9:43:29 AM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r155534 r155535 1 2013-09-11 Anders Carlsson <andersca@apple.com> 2 3 The style checker shouldn't complain about returning or passing OwnPtr 4 https://bugs.webkit.org/show_bug.cgi?id=121163 5 6 Reviewed by Antti Koivisto. 7 8 * Scripts/webkitpy/style/checkers/cpp.py: 9 (check_function_definition_and_pass_ptr): 10 * Scripts/webkitpy/style/checkers/cpp_unittest.py: 11 (PassPtrTest.test_pass_ref_ptr_return_value): 12 (PassPtrTest.test_own_ptr_parameter_value): 13 1 14 2013-09-11 Mario Sanchez Prada <mario.prada@samsung.com> 2 15 -
trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py
r155454 r155535 1640 1640 error: The function to call with any errors found. 1641 1641 """ 1642 match_ref_ or_own_ptr = '(?=\W|^)(Ref|Own)Ptr(?=\W)'1643 bad_type_usage = search(match_ref_ or_own_ptr, type_text)1642 match_ref_ptr = '(?=\W|^)RefPtr(?=\W)' 1643 bad_type_usage = search(match_ref_ptr, type_text) 1644 1644 if not bad_type_usage or type_text.endswith('&') or type_text.endswith('*'): 1645 1645 return -
trunk/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
r155454 r155535 3446 3446 '{\n' 3447 3447 '}', 3448 ' The return type should use PassOwnPtr instead of OwnPtr. [readability/pass_ptr] [5]')3448 '') 3449 3449 3450 3450 def test_ref_ptr_parameter_value(self): … … 3480 3480 '{\n' 3481 3481 '}', 3482 ' The parameter type should use PassOwnPtr instead of OwnPtr. [readability/pass_ptr] [5]')3482 '') 3483 3483 self.assert_pass_ptr_check( 3484 3484 'int myFunction(OwnPtr<Type1>& simple)\n'
Note: See TracChangeset
for help on using the changeset viewer.