DescriptionStyle changes split off of https://codereview.chromium.org/202993003/ .
Violations:
* If any conditional arms have braces, all arms must have braces.
* Don't handle DCHECK failure.
* No else after return
* Use DCHECK instead of CHECK unless CHECK is truly necessary
* Declare variables in the most local scope possible
* Prefer (foo == 0) to (0 == foo)
* Avoid unnecessary vertical whitespace
* All lines of args should begin at the same position
Not violations:
* Use DCHECK_EQ() where possible for better error messages
* Split compound DCHECKs into separate ones so it's easier to see which failed
* Reverse conditionals where doing so allows removing braces and reducing
indenting of more lines
* Rewrap to avoid splitting a string constant
* Don't use at(), it buys nothing over [] when exceptions are off
* delete [] -> delete[]
* Avoid unnecessary temps
BUG=none
TEST=none
R=thakis@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258095
Patch Set 1 #Patch Set 2 : #
Total comments: 2
Messages
Total messages: 4 (0 generated)
|