⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 105652 in webkit


Ignore:
Timestamp:
Jan 23, 2012, 4:01:23 PM (15 years ago)
Author:
eae@chromium.org
Message:

check-webkit-style whitespace/operators triggers on overloaded division operator
https://bugs.webkit.org/show_bug.cgi?id=76650

Reviewed by Darin Adler.

  • Scripts/webkitpy/style/checkers/cpp.py:

(check_spacing):

  • Scripts/webkitpy/style/checkers/cpp_unittest.py:

(CppStyleTest.test_operator_methods):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r105650 r105652  
     12012-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
    1132012-01-23  Ryosuke Niwa  <rniwa@webkit.org>
    214
  • trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py

    r105567 r105652  
    18091809
    18101810    # Don't try to do spacing checks for operator methods
    1811     line = sub(r'operator(==|!=|<|<<|<=|>=|>>|>|\+=|-=|\*=|/=|%=|&=|\|=|^=|<<=|>>=)\(', 'operator\(', line)
     1811    line = sub(r'operator(==|!=|<|<<|<=|>=|>>|>|\+=|-=|\*=|/=|%=|&=|\|=|^=|<<=|>>=|/)\(', 'operator\(', line)
    18121812    # Don't try to do spacing checks for #include or #import statements at
    18131813    # minimum because it messes up checks for spacing around /
  • trunk/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py

    r105567 r105652  
    17161716    def test_operator_methods(self):
    17171717        self.assert_lint('String operator+(const String&, const String&);', '')
     1718        self.assert_lint('String operator/(const String&, const String&);', '')
    17181719        self.assert_lint('bool operator==(const String&, const String&);', '')
    17191720        self.assert_lint('String& operator-=(const String&, const String&);', '')
Note: See TracChangeset for help on using the changeset viewer.