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

Issue 2580773003: Blacklist method names without considering static-vs-instance. (Closed)

Created:
4 years ago by Łukasz Anforowicz
Modified:
4 years ago
Reviewers:
dcheng
CC:
chromium-reviews, nasko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop blacklisting the |trace| method. This CL helps to consistently blacklist across DeclRewriterBase and UnresolvedRewriterBase (and therefore to avoid/fix https://crbug.com/584538) by stopping to blacklist "trace" and "traceImpl" method names. We will put together a separate changelist that tweaks the Oilpan's clang plugin so it will be aware of the new name (|Trace|). This change can be probably rolled into https://crrev.com/2329463004. This CL also tweaks a few other remotely related things: - Unresolved nodes should never resolve to a function, therefore we shouldn't be blacklisting "swap" for unresolved nodes (and we can rename the function to IsBlacklistedMethodName). - IsBlacklistedMethodName stops blacklisting "disable". - This enables reusing IsBlacklistedMethodName from IsBlacklistedMethod. - Blacklisting "disable" for unresolved nodes was always a heuristic (i.e. we cannot tell whether the unresolved method overrides blink::InspectorAgent::disable). Flipping this heuristic around seems okay. BUG=584538 Committed: https://crrev.com/8c6f346940624b5e9b91b95ceeb75960861ad517 Cr-Commit-Position: refs/heads/master@{#439582}

Patch Set 1 #

Patch Set 2 : Stop blacklisting the |trace| method instead. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -27 lines) Patch
M tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp View 1 3 chunks +14 lines, -24 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/methods-original.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 17 (8 generated)
Łukasz Anforowicz
Daniel, can you PTAL? I think I prefer to 1) skip renaming of some methods ...
4 years ago (2016-12-16 00:32:37 UTC) #2
Łukasz Anforowicz
As we discussed - change of plans. The plan is to stop blacklisting "trace" (and ...
4 years ago (2016-12-16 01:14:33 UTC) #4
dcheng
LGTM (but as discussed, let's do an experimental run to see how things go)
4 years ago (2016-12-16 01:19:26 UTC) #5
Łukasz Anforowicz
On 2016/12/16 01:19:26, dcheng wrote: > LGTM > > (but as discussed, let's do an ...
4 years ago (2016-12-16 20:51:02 UTC) #6
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/2580773003/20001
4 years ago (2016-12-16 20:52:32 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/279797)
4 years ago (2016-12-16 21:00:26 UTC) #10
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/2580773003/20001
4 years ago (2016-12-19 21:44:22 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-19 21:58:54 UTC) #15
commit-bot: I haz the power
4 years ago (2016-12-19 22:03:35 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8c6f346940624b5e9b91b95ceeb75960861ad517
Cr-Commit-Position: refs/heads/master@{#439582}

Powered by Google App Engine
This is Rietveld 408576698