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

Issue 1117163002: Clang style plugin: add warn-only option and use it on Windows (Closed)

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

Description

Clang style plugin: add warn-only option and use it on Windows This will allow us to flip a flag to enable warnings-as-errors once the Windows code is cleaned up enough without building a new plugin binary. Also, try not to compute the diagnostic level in multiple places. BUG=467287, 483065 Committed: https://crrev.com/a7ae971275f2aa0a7a6501c72b571939c44baa2b Cr-Commit-Position: refs/heads/master@{#327852}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -37 lines) Patch
M build/common.gypi View 1 chunk +7 lines, -1 line 0 comments Download
M build/config/clang/BUILD.gn View 1 chunk +10 lines, -0 lines 0 comments Download
M tools/clang/plugins/ChromeClassTester.h View 4 chunks +8 lines, -1 line 0 comments Download
M tools/clang/plugins/ChromeClassTester.cpp View 4 chunks +18 lines, -10 lines 0 comments Download
M tools/clang/plugins/FindBadConstructsAction.cpp View 1 chunk +2 lines, -0 lines 2 comments Download
M tools/clang/plugins/FindBadConstructsConsumer.h View 2 chunks +0 lines, -3 lines 0 comments Download
M tools/clang/plugins/FindBadConstructsConsumer.cpp View 2 chunks +1 line, -14 lines 0 comments Download
M tools/clang/plugins/Options.h View 1 chunk +3 lines, -1 line 0 comments Download
A tools/clang/plugins/tests/warn_only.h View 1 chunk +21 lines, -0 lines 0 comments Download
A + tools/clang/plugins/tests/warn_only.cpp View 1 chunk +1 line, -7 lines 0 comments Download
A tools/clang/plugins/tests/warn_only.flags View 1 chunk +1 line, -0 lines 0 comments Download
A tools/clang/plugins/tests/warn_only.txt View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
hans
Please take a look.
5 years, 7 months ago (2015-04-30 22:59:30 UTC) #2
Nico
(…i guess that means not having a test, but since this is transitional i suppose ...
5 years, 7 months ago (2015-04-30 23:08:04 UTC) #3
Nico
other than that lgtm, and if you think that suggestion is silly lgtm as-is too
5 years, 7 months ago (2015-04-30 23:08:20 UTC) #4
hans
https://codereview.chromium.org/1117163002/diff/1/tools/clang/plugins/FindBadConstructsAction.cpp File tools/clang/plugins/FindBadConstructsAction.cpp (right): https://codereview.chromium.org/1117163002/diff/1/tools/clang/plugins/FindBadConstructsAction.cpp#newcode61 tools/clang/plugins/FindBadConstructsAction.cpp:61: options_.warn_only = true; On 2015/04/30 23:08:04, Nico wrote: > ...
5 years, 7 months ago (2015-04-30 23:13:32 UTC) #5
dcheng
On 2015/04/30 at 23:13:32, hans wrote: > https://codereview.chromium.org/1117163002/diff/1/tools/clang/plugins/FindBadConstructsAction.cpp > File tools/clang/plugins/FindBadConstructsAction.cpp (right): > > https://codereview.chromium.org/1117163002/diff/1/tools/clang/plugins/FindBadConstructsAction.cpp#newcode61 ...
5 years, 7 months ago (2015-04-30 23:19:21 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1117163002/1
5 years, 7 months ago (2015-04-30 23:21:45 UTC) #8
Nico
On 2015/04/30 23:19:21, dcheng wrote: > On 2015/04/30 at 23:13:32, hans wrote: > > > ...
5 years, 7 months ago (2015-04-30 23:31:13 UTC) #9
dcheng
Well, I used to just edit plugin_flags.sh =) I guess now that I have to ...
5 years, 7 months ago (2015-04-30 23:41:25 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 7 months ago (2015-05-01 01:02:21 UTC) #11
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/a7ae971275f2aa0a7a6501c72b571939c44baa2b Cr-Commit-Position: refs/heads/master@{#327852}
5 years, 7 months ago (2015-05-01 01:03:25 UTC) #12
Nico
should we remove this again, now that we no longer need it?
5 years ago (2015-11-29 15:28:17 UTC) #13
hans
I started removing this, but then I thought maybe this flag useful when rolling out ...
5 years ago (2015-11-30 19:41:52 UTC) #14
Nico
Couldn't you just disable -Werror for this? On Mon, Nov 30, 2015 at 2:41 PM, ...
5 years ago (2015-11-30 19:42:48 UTC) #15
hans
Oh right, yes that works. I'll get a patch up. On Mon, Nov 30, 2015 ...
5 years ago (2015-11-30 19:45:09 UTC) #16
hans
5 years ago (2015-11-30 23:03:34 UTC) #17
Message was sent while issue was closed.
On 2015/11/30 19:45:09, hans wrote:
> Oh right, yes that works. I'll get a patch up.

https://codereview.chromium.org/1486813002/

Powered by Google App Engine
This is Rietveld 408576698