mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-14 14:20:45 +01:00
Orphan headers should check only added files
This CL makes the presubmit check less strict. We can modify untracked headers but we cannot added them anymore. In the meatime I am spawning a lot of bugs to fix the currently untracked headers. BUG=webrtc:7514 NOTRY=True TBR=kjellander@webrtc.org Review-Url: https://codereview.webrtc.org/2873223004 Cr-Commit-Position: refs/heads/master@{#18080}
This commit is contained in:
parent
48368ad6c6
commit
a644ad3280
1 changed files with 1 additions and 1 deletions
|
@ -623,7 +623,7 @@ def _CheckOrphanHeaders(input_api, output_api):
|
||||||
sys.path = original_sys_path
|
sys.path = original_sys_path
|
||||||
|
|
||||||
for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile):
|
for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile):
|
||||||
if f.LocalPath().endswith('.h'):
|
if f.LocalPath().endswith('.h') and f.Action() == 'A':
|
||||||
file_path = os.path.abspath(f.LocalPath())
|
file_path = os.path.abspath(f.LocalPath())
|
||||||
root_dir = os.getcwd()
|
root_dir = os.getcwd()
|
||||||
gn_file_path = GetBuildGnPathFromFilePath(file_path, os.path.exists,
|
gn_file_path = GetBuildGnPathFromFilePath(file_path, os.path.exists,
|
||||||
|
|
Loading…
Reference in a new issue