Changeset 160706 in webkit
- Timestamp:
- Dec 17, 2013 8:18:21 AM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r160689 r160706 1 2013-12-17 Gergo Balogh <geryxyz@inf.u-szeged.hu> 2 3 Fix for C++ should have the & or * beside the type not the variable name check. 4 https://bugs.webkit.org/show_bug.cgi?id=125846 5 6 Reviewed by Darin Adler. 7 8 * Scripts/webkitpy/style/checkers/cpp.py: 9 (check_spacing): 10 * Scripts/webkitpy/style/checkers/cpp_unittest.py: 11 (CppStyleTest.test_pointer_reference_marker_location): 12 1 13 2013-12-16 Rob Buis <rob.buis@samsung.com> 2 14 -
trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py
r160647 r160706 1925 1925 if file_extension == 'cpp': 1926 1926 # C++ should have the & or * beside the type not the variable name. 1927 matched = match(r'\s* \w+(?<!\breturn|\bdelete)\s+(?P<pointer_operator>\*|\&)\w+', line)1927 matched = match(r'\s*([\w\s]+)(?<!\breturn|\bdelete)\s+(?P<pointer_operator>\*|\&)\s*\w+', line) 1928 1928 if matched: 1929 1929 error(line_number, 'whitespace/declaration', 3, -
trunk/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
r160647 r160706 2067 2067 'Declaration has space between type name and * in int *b [whitespace/declaration] [3]', 2068 2068 'foo.cpp') 2069 self.assert_lint('int * b;', 2070 'Declaration has space between type name and * in int * b [whitespace/declaration] [3]', 2071 'foo.cpp') 2069 2072 self.assert_lint('return *b;', '', 'foo.cpp') 2070 2073 self.assert_lint('delete *b;', '', 'foo.cpp')
Note: See TracChangeset
for help on using the changeset viewer.