check-webkit-style: do not warn about missing primary header for *SoftLink.cpp files
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Feb 2015 20:06:46 +0000 (20:06 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Feb 2015 20:06:46 +0000 (20:06 +0000)
commitbcb46572b4b4b2e21f3e3171aec694be36b1ccba
tree9b9ff3fa315ec228c0951d9d743fc007d1dd09e3
parentd353997c36d1788ac0ff3a0e9ee583d4351225b3
check-webkit-style: do not warn about missing primary header for *SoftLink.cpp files
<http://webkit.org/b/141799>

Reviewed by Alex Christensen.

* Scripts/webkitpy/style/checkers/cpp.py:
(_IncludeState.check_next_include_order): Don't emit a warning
if the primary header exists and the source file name ends with
"SoftLink.cpp".  Add 'filename' argument to method.
(check_include_line): Pass in 'filename'.

* Scripts/webkitpy/style/checkers/cpp_unittest.py:
(OrderOfIncludesTest.test_check_next_include_order__no_config):
(OrderOfIncludesTest.test_check_next_include_order__no_self):
(OrderOfIncludesTest.test_check_next_include_order__likely_then_config):
(OrderOfIncludesTest.test_check_next_include_order__other_then_config):
(OrderOfIncludesTest.test_check_next_include_order__config_then_other_then_likely):
- Add test filename arguments for calls to
  check_next_include_order().
(OrderOfIncludesTest.test_primary_header): Add test for a file
name ending in "SoftLink.cpp".

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@180355 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/webkitpy/style/checkers/cpp.py
Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py