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

Issue 2748793004: Add static analysis support to Win Clang builds (Closed)

Created:
3 years, 9 months ago by Kevin M
Modified:
3 years, 9 months ago
Reviewers:
danakj, brucedawson
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add static analysis support to Win Clang builds This CL enables static analysis support for Clang builds on Windows. Developers can opt-in to receiving analysis text by setting "use_clang_static_analyzer = true" in their GN build args. The solution works with Goma. * Added flags to Clang portions of build/toolchain/win/BUILD.gn. * Added options to the Analysis wrapper script to handle clang-cl.exe's flag style. BUG=687243 Review-Url: https://codereview.chromium.org/2748793004 Cr-Commit-Position: refs/heads/master@{#457566} Committed: https://chromium.googlesource.com/chromium/src/+/5847e4bdf3b65ccc136bc42ef00d573f2adb50fb

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : fix on linux #

Patch Set 4 : . #

Patch Set 5 : tightened up the syntax #

Patch Set 6 : swap xclang with xanalyzer #

Patch Set 7 : . #

Patch Set 8 : Non-analysis fallback for Clang bugs #

Total comments: 2

Patch Set 9 : . #

Patch Set 10 : Make mode explicit #

Patch Set 11 : Improve mode arg help text #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -22 lines) Patch
M build/toolchain/clang_static_analyzer_wrapper.py View 1 2 3 4 5 6 7 8 9 10 3 chunks +23 lines, -21 lines 0 comments Download
M build/toolchain/gcc_toolchain.gni View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M build/toolchain/win/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (12 generated)
Kevin M
3 years, 9 months ago (2017-03-13 23:56:32 UTC) #3
Kevin M
3 years, 9 months ago (2017-03-14 00:48:34 UTC) #4
danakj
Please format your CL description: - Separate subject from body with a blank line - ...
3 years, 9 months ago (2017-03-14 15:16:24 UTC) #5
danakj
LGTM % brucedawson
3 years, 9 months ago (2017-03-14 15:22:13 UTC) #6
Kevin M
Done. brucedawson, PTAL
3 years, 9 months ago (2017-03-14 16:50:09 UTC) #8
brucedawson
On 2017/03/14 16:50:09, Kevin M wrote: > Done. brucedawson, PTAL The subject line in the ...
3 years, 9 months ago (2017-03-14 17:46:07 UTC) #9
brucedawson
https://codereview.chromium.org/2748793004/diff/140001/build/toolchain/clang_static_analyzer_wrapper.py File build/toolchain/clang_static_analyzer_wrapper.py (right): https://codereview.chromium.org/2748793004/diff/140001/build/toolchain/clang_static_analyzer_wrapper.py#newcode53 build/toolchain/clang_static_analyzer_wrapper.py:53: action='store_true') I'm not familiar enough with the available options, ...
3 years, 9 months ago (2017-03-14 17:56:38 UTC) #11
Kevin M
https://codereview.chromium.org/2748793004/diff/140001/build/toolchain/clang_static_analyzer_wrapper.py File build/toolchain/clang_static_analyzer_wrapper.py (right): https://codereview.chromium.org/2748793004/diff/140001/build/toolchain/clang_static_analyzer_wrapper.py#newcode53 build/toolchain/clang_static_analyzer_wrapper.py:53: action='store_true') On 2017/03/14 17:56:38, brucedawson wrote: > I'm not ...
3 years, 9 months ago (2017-03-14 19:11:04 UTC) #12
Kevin M
PTAL
3 years, 9 months ago (2017-03-16 17:25:32 UTC) #17
brucedawson
lgtm
3 years, 9 months ago (2017-03-16 19:34:31 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2748793004/200001
3 years, 9 months ago (2017-03-16 19:49:23 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 21:40:39 UTC) #24
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/5847e4bdf3b65ccc136bc42ef00d...

Powered by Google App Engine
This is Rietveld 408576698