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:
mbonadei 2017-05-10 05:21:55 -07:00 committed by Commit bot
parent 48368ad6c6
commit a644ad3280

View file

@ -623,7 +623,7 @@ def _CheckOrphanHeaders(input_api, output_api):
sys.path = original_sys_path
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())
root_dir = os.getcwd()
gn_file_path = GetBuildGnPathFromFilePath(file_path, os.path.exists,