mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 13:50:40 +01:00
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:
parent
9c8c586dd3
commit
3fa35172cd
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue