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

Issue 1273313003: clang: Enable -Wfor-loop-analysis. (Closed)

Created:
5 years, 4 months ago by Nico
Modified:
4 years, 11 months ago
Reviewers:
Lei Zhang, hans, imcheng
CC:
chromium-reviews, imcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

clang: Enable -Wfor-loop-analysis. Every time I try this warning, it finds a few true positives and has no false negatives. It looks like an excellent warning. I did three builds of target "gfx" in both Release and Debug with and without this warning enabled, doing local (non-goma) component builds (running -t clean between each build). This builds about 1.6k build steps each time. Warning on: Release: 0m26.850s 0m27.227s 0m27.159s Debug: 0m24.811s 0m25.044s 0m25.498s Warning off: Release: 0m26.834s 0m27.242s 0m26.952s Debug: 0m24.879s 0m25.064s 0m25.673s See e.g. the comments in https://codereview.chromium.org/1269343005/diff/240001/chrome/renderer/spellchecker/spellcheck_worditerator_unittest.cc https://codereview.chromium.org/196433002/diff/60001/media/cast/transport/pacing/paced_sender_unittest.cc for examples. BUG=none TBR=imcheng Committed: https://crrev.com/29ec253a32cc66d0855d8e6f17aafa00b1996a80 Cr-Commit-Position: refs/heads/master@{#367855}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : rebase #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : -Wrange-loop-analysis too #

Patch Set 7 : rebase #

Patch Set 8 : back to only -Wfor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -1 line) Patch
M build/common.gypi View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M build/config/compiler/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M media/cast/net/pacing/paced_sender_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 22 (12 generated)
Nico
4 years, 11 months ago (2016-01-06 16:08:31 UTC) #4
Nico
+thestig, I think Hans is already out for today.
4 years, 11 months ago (2016-01-06 16:16:29 UTC) #7
hans
lgtm
4 years, 11 months ago (2016-01-06 16:30:50 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1273313003/130004 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1273313003/130004
4 years, 11 months ago (2016-01-06 16:51:09 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/132967)
4 years, 11 months ago (2016-01-06 16:59:07 UTC) #12
Nico
tbr imcheng for media/ (who said this is the right fix there in https://codereview.chromium.org/196433002/diff/60001/media/cast/transport/pacing/paced_sender_unittest.cc)
4 years, 11 months ago (2016-01-06 18:06:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1273313003/130004 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1273313003/130004
4 years, 11 months ago (2016-01-06 18:08:30 UTC) #17
commit-bot: I haz the power
Committed patchset #8 (id:130004)
4 years, 11 months ago (2016-01-06 18:13:57 UTC) #19
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/29ec253a32cc66d0855d8e6f17aafa00b1996a80 Cr-Commit-Position: refs/heads/master@{#367855}
4 years, 11 months ago (2016-01-06 18:14:58 UTC) #21
imcheng
4 years, 11 months ago (2016-01-06 18:16:49 UTC) #22
Message was sent while issue was closed.
media/cast/net/pacing/paced_sender_unittest.cc lgtm

Powered by Google App Engine
This is Rietveld 408576698