Index: PRESUBMIT.py |
diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
index ad218330b180a4c0ee1a379dfa4e8c2ccda98421..0d5bb177db8d538c7bf65124b9380370979107e4 100644 |
--- a/PRESUBMIT.py |
+++ b/PRESUBMIT.py |
@@ -71,9 +71,9 @@ def _V8PresubmitChecks(input_api, output_api): |
from presubmit import CheckStatusFiles |
results = [] |
- if not CppLintProcessor().Run(input_api.PresubmitLocalPath()): |
+ if not CppLintProcessor().RunOnFiles(input_api.AffectedFiles()): |
results.append(output_api.PresubmitError("C++ lint check failed")) |
- if not SourceProcessor().Run(input_api.PresubmitLocalPath()): |
+ if not SourceProcessor().RunOnFiles(input_api.AffectedFiles()): |
results.append(output_api.PresubmitError( |
"Copyright header, trailing whitespaces and two empty lines " \ |
"between declarations check failed")) |