forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Three directories had a PRESUBMIT designed to catch "std::unique_ptr<T>()" and require nullptr instead. In two directories, the match was overbroad, catching things like "std::vector<std::unique_ptr<T>>()". In ui/, ricea attempted a fix (in https://codereview.chromium.org/2311783002 ) that made the regex too conservative, failing to catch std::unique_ptr<Foo<T>>(). Instead, fail to match std::unique_ptr<T>() if it's immediately preceded by '<'. This moves the check to the global PRESUBMIT to avoid duplication. BUG=none TEST=none TBR=sky Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel Change-Id: Ia8888408683b2de3bbe60e0e43409d72475ea169 Reviewed-on: https://chromium-review.googlesource.com/933547 Reviewed-by: Peter Kasting <pkasting@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#538723}
- Loading branch information
Showing
4 changed files
with
35 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters