summaryrefslogtreecommitdiff
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2016-02-22 11:56:05 -0500
committerDan Sinclair <dsinclair@chromium.org>2016-02-22 11:56:05 -0500
commit22d6607d104d4cb8c5263c4d307b4ba1e4ff959e (patch)
tree5a3567227e10a988484c329b7fdf315efb3c988a /PRESUBMIT.py
parent33364e2d6f9549d7964611097c663264548a5d68 (diff)
downloadpdfium-22d6607d104d4cb8c5263c4d307b4ba1e4ff959e.tar.xz
Fixing include guards, and presubmit.
This update fixes all include guards so cpplint build/header_guard completes without error. A presubmit check is added to make sure the guards stay clean. BUG=pdfium:65 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1719083002 .
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 1ad3a5ea3e..6f19e24a46 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -8,7 +8,14 @@ See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmit API built into depot_tools.
"""
+LINT_FILTERS = [
+ '-',
+ '+build/header_guard',
+]
+
def CheckChangeOnUpload(input_api, output_api):
results = []
results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api)
+ results += input_api.canned_checks.CheckChangeLintsClean(
+ input_api, output_api, None, LINT_FILTERS)
return results