Filter objc headers in cpplint presubmit check

The previous blacklist would filter out all headers under /webrtc/sdk
and all headers in objc dirs. This adds a filter for files that end in
objc, for example `video_capture_objc.h`.

BUG=
NOTRY=true
R=kjellander@webrtc.org

Review URL: https://codereview.webrtc.org/2317023002 .

Cr-Commit-Position: refs/heads/master@{#14153}
This commit is contained in:
Kári Tristan Helgason 2016-09-09 08:55:05 +00:00
parent 9c8c586dd3
commit 3fa35172cd

View file

@ -499,6 +499,7 @@ def _CommonChecks(input_api, output_api):
# they do not follow C++ lint rules.
black_list = input_api.DEFAULT_BLACK_LIST + (
r".*\bobjc[\\\/].*",
r".*objc\.[hcm]+$",
r"webrtc\/build\/ios\/SDK\/.*",
)
source_file_filter = lambda x: input_api.FilterSourceFile(x, None, black_list)