forked from win32ss/supermium
-
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.
PRESUBMIT: Warn against adding new dangling pointers.
The DanglingPointerDetector is enabled on the CQ. It means we are now blocking new dangling pointers and can detect regressions. This blocks ~10 patches per day. The error message contains links toward the documentation and a guide to fix dangling pointers: - docs/dangling_ptr.md - docs/dangling_ptr_guide.md This is enough for most developers to fix them. However, it happens some are simply adding new `DanglingUntriaged` occurrences. Most are copy-pasting nearby code thinking this is the correct way to do. This patch adds a PRESUBMIT warning developers. Change-Id: I05d09e3f988f65b461a040c76a6ba2904073864b Bug: chromium:1395297 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4853628 Reviewed-by: Daniel Cheng <[email protected]> Commit-Queue: Arthur Sonzogni <[email protected]> Cr-Commit-Position: refs/heads/main@{#1200144}
- Loading branch information
1 parent
b6fc0a4
commit 8228ad6
Showing
2 changed files
with
202 additions
and
0 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