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

Issue 1129093002: plugin: Do not warn on virtual/override stuff coming from macros in system headers. (Closed)

Created:
5 years, 7 months ago by Nico
Modified:
5 years, 7 months ago
Reviewers:
hans, 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

plugin: Do not warn on virtual/override stuff coming from macros in system headers. END_COM_MAP() adds a `virtual long AddRef() = 0` to Chromium classes, and we don't want to warn on that. (This also means that if there was a system header defining something like FINAL, we'd no longer warn on that which is a bit unfortunate -- but it's consistent with how the other plugin warnings work.) Also add a comment that makes the windows.h in a test look less wtf-y. This requires updating a golden file. BUG=483128 Committed: https://crrev.com/3961d110959aaf9655af68dfaf041cd5f0f991d4 Cr-Commit-Position: refs/heads/master@{#328665}

Patch Set 1 #

Patch Set 2 : actual change #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -26 lines) Patch
M tools/clang/plugins/FindBadConstructsConsumer.cpp View 1 1 chunk +13 lines, -5 lines 4 comments Download
M tools/clang/plugins/tests/system/windows.h View 1 chunk +5 lines, -0 lines 0 comments Download
M tools/clang/plugins/tests/virtual_specifiers.cpp View 2 chunks +14 lines, -0 lines 0 comments Download
M tools/clang/plugins/tests/virtual_specifiers.txt View 1 chunk +21 lines, -21 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Nico
First to review wins! I looked at other places where we emit diags, and I ...
5 years, 7 months ago (2015-05-06 22:41:06 UTC) #2
Nico
(patch set 2 has the actual plugin change too. I had reverted it locally to ...
5 years, 7 months ago (2015-05-06 22:41:59 UTC) #3
dcheng
https://codereview.chromium.org/1129093002/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): https://codereview.chromium.org/1129093002/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode477 tools/clang/plugins/FindBadConstructsConsumer.cpp:477: if (!InBannedDirectory(manager.getSpellingLoc(loc))) { It almost feels like this should ...
5 years, 7 months ago (2015-05-06 22:44:26 UTC) #4
hans
+1 on dcheng's comment https://codereview.chromium.org/1129093002/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): https://codereview.chromium.org/1129093002/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode474 tools/clang/plugins/FindBadConstructsConsumer.cpp:474: // Again, only emit the ...
5 years, 7 months ago (2015-05-06 22:47:42 UTC) #5
Nico
https://codereview.chromium.org/1129093002/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): https://codereview.chromium.org/1129093002/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode420 tools/clang/plugins/FindBadConstructsConsumer.cpp:420: // source range. to this https://codereview.chromium.org/1129093002/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode477 tools/clang/plugins/FindBadConstructsConsumer.cpp:477: if (!InBannedDirectory(manager.getSpellingLoc(loc))) ...
5 years, 7 months ago (2015-05-06 22:49:24 UTC) #6
Nico
(Also creating a dummy stream for fixits if nothing gets emitted is annoying) On May ...
5 years, 7 months ago (2015-05-06 23:09:16 UTC) #7
hans
On 2015/05/06 22:49:24, Nico wrote: > On 2015/05/06 22:44:26, dcheng wrote: > > It almost ...
5 years, 7 months ago (2015-05-06 23:13:45 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129093002/20001
5 years, 7 months ago (2015-05-07 00:11:06 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-07 00:38:42 UTC) #11
commit-bot: I haz the power
5 years, 7 months ago (2015-05-07 00:39:42 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3961d110959aaf9655af68dfaf041cd5f0f991d4
Cr-Commit-Position: refs/heads/master@{#328665}

Powered by Google App Engine
This is Rietveld 408576698