forked from chromium/chromium
-
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.
Fix false-positive in unique_ptr presubmit check with mismatched <>
Presubmit was preventing upload of crrev.com/c/5534806 due to changed line: ` std::unique_ptr<WebAppInstallInfo>>(` being interpreted as a call to the unique_ptr constructor. IIUC this was because the check only looks at the changed lines and missed the extra ">" indicating this was really part of a larger template expression. Added a condition that suppresses the check when selected brackets are mismatching (ie. number of < and > are not equal). Added tests for these cases. Change-Id: I260b7826eb1f55764a8a93b3402888afa5032eed Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5538411 Reviewed-by: Dirk Pranke <[email protected]> Auto-Submit: Glen Robertson <[email protected]> Commit-Queue: Glen Robertson <[email protected]> Cr-Commit-Position: refs/heads/main@{#1301700}
- Loading branch information
Glen Robertson
authored and
Chromium LUCI CQ
committed
May 16, 2024
1 parent
b79c4fb
commit 9142ffd
Showing
2 changed files
with
11 additions
and
4 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