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

Issue 740083002: Clang plugin: Allow >1 WeakPtrFactory member in a class (Closed)

Created:
6 years, 1 month ago by dmichael (off chromium)
Modified:
6 years, 1 month ago
Reviewers:
Nico, MRV
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Clang plugin: Allow >1 WeakPtrFactory member in a class This CL makes the WeakPtrFactory check allow more than 1 WeakPtrFactory at the end of the class, but still ensures that no other data members appear after the WeakPtrFactory(s). BUG=303818 Committed: https://crrev.com/b2bf826e635fd514899af6860f712d6b58cf6fdf Cr-Commit-Position: refs/heads/master@{#305055}

Patch Set 1 #

Patch Set 2 : Put the WeakPtrFactory option back #

Patch Set 3 : Some more documentation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -11 lines) Patch
M tools/clang/plugins/FindBadConstructsConsumer.cpp View 1 2 1 chunk +17 lines, -8 lines 0 comments Download
M tools/clang/plugins/tests/weak_ptr_factory.cpp View 3 chunks +15 lines, -0 lines 0 comments Download
M tools/clang/plugins/tests/weak_ptr_factory.txt View 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
dmichael (off chromium)
(With big thanks to the Samsung folks who cleaned up the WeakPtrFactory problems)
6 years, 1 month ago (2014-11-20 00:03:48 UTC) #2
dmichael (off chromium)
WAIT, not quite ready to turn this on yet. Still not error free yet.
6 years, 1 month ago (2014-11-20 00:04:55 UTC) #3
Nico
It looks like this CL does two things: 1. Remove the check-weak-ptr-factory-order flag 2. Change ...
6 years, 1 month ago (2014-11-20 00:08:22 UTC) #4
dmichael (off chromium)
Right, Chromium is not clean w.r.t. this check yet. I published before letting my compile ...
6 years, 1 month ago (2014-11-20 17:21:38 UTC) #5
Nico
lgtm When do you need to WeakPtrFactory members though? If you want one class to ...
6 years, 1 month ago (2014-11-20 17:57:05 UTC) #6
dmichael (off chromium)
On 2014/11/20 17:57:05, Nico wrote: > lgtm > > When do you need to WeakPtrFactory ...
6 years, 1 month ago (2014-11-20 18:19:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/740083002/40001
6 years, 1 month ago (2014-11-20 18:22:00 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-11-20 19:03:21 UTC) #10
commit-bot: I haz the power
6 years, 1 month ago (2014-11-20 19:04:09 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b2bf826e635fd514899af6860f712d6b58cf6fdf
Cr-Commit-Position: refs/heads/master@{#305055}

Powered by Google App Engine
This is Rietveld 408576698