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

Issue 1140443005: win: Make oilpan plugin work better with delayed template parsing. (Closed)

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

Description

win: Make oilpan plugin work better with delayed template parsing. On Windows, clang-cl only parses template methods that are referenced (-fdelayed-template-parsing), so members traced from unreferenced template methods weren't seen by the plugin, which caused it to warn about them. Explicitly parse delayed template methods that look like they are trace methods and that aren't in system headers to work around this. This is based on Kim Grasman's patch for the IWYU project: https://code.google.com/p/include-what-you-use/source/detail?r=566 This fixes 3 of the 4 failing oilpan plugin tests on Windows. BUG=486571 NOPRESUBMIT=true Committed: https://crrev.com/28c1b1099fb09782841d891ca43e83e71cd8dfc6 Cr-Commit-Position: refs/heads/master@{#330247}

Patch Set 1 #

Total comments: 2

Patch Set 2 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -1 line) Patch
M tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp View 1 4 chunks +45 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/Config.h View 2 chunks +2 lines, -2 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/delayed_parsing.cpp View 1 1 chunk +21 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/delayed_parsing.flags View 1 1 chunk +1 line, -0 lines 0 comments Download
A + tools/clang/blink_gc_plugin/tests/delayed_parsing.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
Nico
(rnk: FYI since you suggested this approach to Kim 9 months ago)
5 years, 7 months ago (2015-05-15 22:36:10 UTC) #2
hans
lgtm Could we have a test for this that works on all platforms, by putting ...
5 years, 7 months ago (2015-05-15 22:43:56 UTC) #3
Reid Kleckner
Seems reasonable. RAV is a pretty heavy class that isn't really meant to be instantiated ...
5 years, 7 months ago (2015-05-15 22:44:32 UTC) #5
Nico
Added a targeted test that tests this when running tests on non-win too. https://codereview.chromium.org/1140443005/diff/1/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp File ...
5 years, 7 months ago (2015-05-15 22:57:26 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1140443005/20001
5 years, 7 months ago (2015-05-15 22:59:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1140443005/20001
5 years, 7 months ago (2015-05-15 23:14:11 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/64209)
5 years, 7 months ago (2015-05-15 23:26:44 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1140443005/20001
5 years, 7 months ago (2015-05-16 00:28:07 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-16 00:31:41 UTC) #17
sof
Not clear from the CL, have you tested this on the Blink codebase with Oilpan ...
5 years, 7 months ago (2015-05-16 05:45:19 UTC) #19
Nico
On 2015/05/16 05:45:19, sof wrote: > Not clear from the CL, have you tested this ...
5 years, 7 months ago (2015-05-16 05:50:05 UTC) #20
Nico
(I'll debug that tomorrow) On May 15, 2015 10:50 PM, <thakis@chromium.org> wrote: > On 2015/05/16 ...
5 years, 7 months ago (2015-05-16 06:15:11 UTC) #21
sof
On 2015/05/16 05:50:05, Nico wrote: > On 2015/05/16 05:45:19, sof wrote: > > Not clear ...
5 years, 7 months ago (2015-05-16 06:16:14 UTC) #22
commit-bot: I haz the power
5 years, 7 months ago (2015-05-18 11:29:51 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/28c1b1099fb09782841d891ca43e83e71cd8dfc6
Cr-Commit-Position: refs/heads/master@{#330247}

Powered by Google App Engine
This is Rietveld 408576698