Changeset 201288 in webkit


Ignore:
Timestamp:
May 23, 2016 9:46:38 AM (8 years ago)
Author:
beidson@apple.com
Message:

check-webkit-style gets flags std::literals::chrono_literals as bad naming.
https://bugs.webkit.org/show_bug.cgi?id=157969

Reviewed by Alex Christensen.

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

(check_identifier_name_in_declaration):

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

(WebKitStyleTest.test_names):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r201263 r201288  
     12016-05-23  Brady Eidson  <beidson@apple.com>
     2
     3        check-webkit-style gets flags std::literals::chrono_literals as bad naming.
     4        https://bugs.webkit.org/show_bug.cgi?id=157969
     5
     6        Reviewed by Alex Christensen.
     7
     8        * Scripts/webkitpy/style/checkers/cpp.py:
     9        (check_identifier_name_in_declaration):
     10        * Scripts/webkitpy/style/checkers/cpp_unittest.py:
     11        (WebKitStyleTest.test_names):
     12
    1132016-05-22  Alexey Proskuryakov  <ap@apple.com>
    214
  • trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py

    r200913 r201288  
    34013401                and not modified_identifier == "const_iterator"
    34023402                and not modified_identifier == "vm_throw"
    3403                 and not modified_identifier == "DFG_OPERATION"):
     3403                and not modified_identifier == "DFG_OPERATION"
     3404                and not modified_identifier.find('chrono_literals') >= 0):
    34043405                error(line_number, 'readability/naming/underscores', 4, identifier + " is incorrectly named. Don't use underscores in your identifier names.")
    34053406
  • trunk/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py

    r200913 r201288  
    51735173        self.assert_lint('typedef VectorType::const_iterator const_iterator;', '')
    51745174
     5175        # chrono_literals is allowed as well.
     5176        self.assert_lint('using namespace std::literals::chrono_literals;', '')
     5177
    51755178        # vm_throw is allowed as well.
    51765179        self.assert_lint('int vm_throw;', '')
Note: See TracChangeset for help on using the changeset viewer.