Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Issue 203223008: Style changes split off of https://codereview.chromium.org/202993003/ . (Closed)

Created:
6 years, 9 months ago by Peter Kasting
Modified:
6 years, 9 months ago
Reviewers:
Nico
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Style 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -80 lines) Patch
M base/test/trace_event_analyzer.cc View 1 13 chunks +42 lines, -46 lines 2 comments Download
M base/win/event_trace_consumer_unittest.cc View 15 chunks +21 lines, -34 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Peter Kasting
As requested on https://codereview.chromium.org/202993003/ , here are style changes from that patch as a standalone ...
6 years, 9 months ago (2014-03-18 19:28:12 UTC) #1
Nico
lgtm! ("* Don't use at(), it buys nothing over [] when exceptions are off" in ...
6 years, 9 months ago (2014-03-19 10:29:21 UTC) #2
Peter Kasting
(I replied to the at() stuff back on the other CL.) https://codereview.chromium.org/203223008/diff/10001/base/test/trace_event_analyzer.cc File base/test/trace_event_analyzer.cc (right): ...
6 years, 9 months ago (2014-03-19 21:14:15 UTC) #3
Peter Kasting
6 years, 9 months ago (2014-03-19 21:15:56 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r258095 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698