Changeset 105652 in webkit
- Timestamp:
- Jan 23, 2012, 4:01:23 PM (15 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/webkitpy/style/checkers/cpp.py (modified) (1 diff)
-
Scripts/webkitpy/style/checkers/cpp_unittest.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r105650 r105652 1 2012-01-23 Emil A Eklund <eae@chromium.org> 2 3 check-webkit-style whitespace/operators triggers on overloaded division operator 4 https://bugs.webkit.org/show_bug.cgi?id=76650 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_operator_methods): 12 1 13 2012-01-23 Ryosuke Niwa <rniwa@webkit.org> 2 14 -
trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py
r105567 r105652 1809 1809 1810 1810 # Don't try to do spacing checks for operator methods 1811 line = sub(r'operator(==|!=|<|<<|<=|>=|>>|>|\+=|-=|\*=|/=|%=|&=|\|=|^=|<<=|>>= )\(', 'operator\(', line)1811 line = sub(r'operator(==|!=|<|<<|<=|>=|>>|>|\+=|-=|\*=|/=|%=|&=|\|=|^=|<<=|>>=|/)\(', 'operator\(', line) 1812 1812 # Don't try to do spacing checks for #include or #import statements at 1813 1813 # minimum because it messes up checks for spacing around / -
trunk/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
r105567 r105652 1716 1716 def test_operator_methods(self): 1717 1717 self.assert_lint('String operator+(const String&, const String&);', '') 1718 self.assert_lint('String operator/(const String&, const String&);', '') 1718 1719 self.assert_lint('bool operator==(const String&, const String&);', '') 1719 1720 self.assert_lint('String& operator-=(const String&, const String&);', '')
Note:
See TracChangeset
for help on using the changeset viewer.