Descriptionclang: 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 #
Messages
Total messages: 22 (12 generated)
|