diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-21 13:31:16 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-21 13:31:16 -0800 |
commit | d33c8e3145539631d03242a16c3683c3538c7557 (patch) | |
tree | 682e76ef41eb01822be2e4878b6ee73fac1613d4 | |
parent | 9e05ee1e7bfb74d56d69620ad1e72b03e29b9237 (diff) | |
download | pdfium-d33c8e3145539631d03242a16c3683c3538c7557.tar.xz |
Check include order on cpp files as well
The check for include sorting was missing the cpp extension so was not running
against any cpp files on upload.
Review-Url: https://codereview.chromium.org/2522673002
-rw-r--r-- | PRESUBMIT.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 5ad2f545ae..db1bf00eb3 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -239,7 +239,7 @@ def _CheckIncludeOrder(input_api, output_api): warnings = [] for f in input_api.AffectedFiles(file_filter=FileFilterIncludeOrder): - if f.LocalPath().endswith(('.cc', '.h', '.mm')): + if f.LocalPath().endswith(('.cc', '.cpp', '.h', '.mm')): changed_linenums = set(line_num for line_num, _ in f.ChangedContents()) warnings.extend(_CheckIncludeOrderInFile(input_api, f, changed_linenums)) |