Changeset 164806 in webkit
- Timestamp:
- Feb 27, 2014 9:02:13 AM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r164801 r164806 1 2014-02-27 Laszlo Vidacs <lvidacs.u-szeged@partner.samsung.com> 2 3 check-webkit-style indentation false alarm in WebKit/win/WebNodeHighlight.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=127076 5 6 Reviewed by Anders Carlsson. 7 8 Avoid match for :: as start of a member initialization list. Modify expression to match 9 after a colon either non-colon character or end of line. 10 11 * Scripts/webkitpy/style/checkers/cpp.py: 12 (check_member_initialization_list): 13 * Scripts/webkitpy/style/checkers/cpp_unittest.py: 14 (WebKitStyleTest.test_member_initialization_list): 15 1 16 2014-02-27 Renata Hodovan <rhodovan.u-szeged@partner.samsung.com> 2 17 -
trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py
r162365 r164806 2007 2007 begin_line = line 2008 2008 # match the start of initialization list 2009 if search(r'^(?P<indentation>\s*)((explicit\s+)?[^(\s|\?)]+\([^\?]*\)\s?\:|^(\s|\?)*\:) .*[^;]*$', line):2009 if search(r'^(?P<indentation>\s*)((explicit\s+)?[^(\s|\?)]+\([^\?]*\)\s?\:|^(\s|\?)*\:)([^\:]|\Z)[^;]*$', line): 2010 2010 if search(r'[^:]\:[^\:\s]+', line): 2011 2011 error(line_number, 'whitespace/init', 4, -
trunk/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
r162365 r164806 5020 5020 { }''', 5021 5021 '') 5022 self.assert_lint('::ShowWindow(m_overlay);', '') 5022 5023 self.assert_lint('o = foo(b ? bar() : baz());', '') 5023 5024 self.assert_lint('MYMACRO(a ? b() : c);', '')
Note: See TracChangeset
for help on using the changeset viewer.