From 22d6607d104d4cb8c5263c4d307b4ba1e4ff959e Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 22 Feb 2016 11:56:05 -0500 Subject: 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 . --- PRESUBMIT.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'PRESUBMIT.py') 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 -- cgit v1.2.3