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

Issue 676743003: Adding /analyze support to common.gypi through GYP_DEFINES=win_analyze=1 (Closed)

Created:
6 years, 2 months ago by brucedawson
Modified:
6 years, 1 month ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Adding /analyze support to common.gypi through GYP_DEFINES=win_analyze=1, and suppress one very noisy warning. When win_analyze=1 is specified then /analyze is added to the command line to enable static code analysis with VC++. WarnAsErrors is set to false to allow reporting of all errors. Additional, WX- is added to disable WarnAsErrors more robustly, necessary because some projects override WarnAsErrors. Additionally, many noisy but low-value warnings are suppressed. Finally, _USING_V110_SDK71_ is un-set when win_analyze is true because this is incompatible with /analyze. The change to callback_internal.h suppresses an extremely noisy warning about a potentially incorrect use of sizeof(): base\callback_internal.h(80) : warning C6334: sizeof operator applied to an expression with an operator might yield unexpected results: Parentheses can be used to disambiguate certain usages. With this change almost all of Chrome can be built with high but useful levels of warnings. bug=427616 Committed: https://crrev.com/4b6961df21fb1475efd3f6713ef5c34b1763d748 Cr-Commit-Position: refs/heads/master@{#301723}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Suppress one warning by adding parentheses and cleanup the common.gypi changes. #

Total comments: 2

Patch Set 3 : Fixed spelling error and moved /analyze settings more globally instead of debug-only. #

Patch Set 4 : Fixed comment location #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -3 lines) Patch
M base/callback_internal.h View 1 1 chunk +1 line, -1 line 0 comments Download
M build/common.gypi View 1 2 3 3 chunks +41 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
scottmg
Is there a crbug filed for this? If not please file one to tie future ...
6 years, 1 month ago (2014-10-27 17:47:03 UTC) #2
cpu_(ooo_6.6-7.5)
bug is 427616
6 years, 1 month ago (2014-10-27 19:46:59 UTC) #3
brucedawson
All comments addressed, including my prior-to-checkin to-do list. TANL
6 years, 1 month ago (2014-10-27 23:18:58 UTC) #4
scottmg
We normally put "BUG=427616" at the end of the CL, not for any great reason. ...
6 years, 1 month ago (2014-10-28 00:36:14 UTC) #5
scottmg
https://codereview.chromium.org/676743003/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/676743003/diff/20001/build/common.gypi#newcode3228 build/common.gypi:3228: # When win_analye is specified add the /analyze switch. ...
6 years, 1 month ago (2014-10-28 00:38:38 UTC) #6
brucedawson
Fixed the spelling error and moved the analyze blocks together, out of the debug block. ...
6 years, 1 month ago (2014-10-28 17:34:52 UTC) #7
scottmg
You don't need to walk the whole tree, only at the level files you're touching ...
6 years, 1 month ago (2014-10-28 17:51:43 UTC) #8
brucedawson
Added danakj for change to base. Ready for final review.
6 years, 1 month ago (2014-10-28 17:55:16 UTC) #10
danakj
LGTM
6 years, 1 month ago (2014-10-28 18:29:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/676743003/60001
6 years, 1 month ago (2014-10-28 19:46:13 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-10-28 22:18:13 UTC) #14
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 22:18:55 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4b6961df21fb1475efd3f6713ef5c34b1763d748
Cr-Commit-Position: refs/heads/master@{#301723}

Powered by Google App Engine
This is Rietveld 408576698