DescriptionAdd PRESUBMIT.py warning for contradictory NOTREACHED() use.
As recently discussed on chromium-dev [1] and subsequently incorporated into the
Chromium Coding Style [2], NOTREACHED() followed by code is an anti-pattern.
This CL lets PRESUBMIT.py detect most of these cases and print a warning to the
developer.
[1] https://groups.google.com/a/chromium.org/d/msg/chromium-dev/c2X0D1Z6X2o/ddkFLqQP0P0J
[2] http://www.chromium.org/developers/coding-style#TOC-CHECK-DCHECK-and-NOTREACHED-
BUG=none
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279681
Patch Set 1 #
Total comments: 12
Patch Set 2 : Address maruel's comments. Minor improvements. #
Total comments: 6
Patch Set 3 : Address more comments by maruel. #Patch Set 4 : Rebase. #Messages
Total messages: 12 (0 generated)
|