1 In file included from base_refcounted.cpp:5:
2 ./base_refcounted.h:47:3: warning: [chromium-style] Classes that are ref-counted should have destructors that are declared protected or private.
3 ~PublicRefCountedDtorInHeader() {}
5 ./base_refcounted.h:44:7: note: [chromium-style] 'PublicRefCountedDtorInHeader' inherits from 'base::RefCounted<PublicRefCountedDtorInHeader>' here
6 : public base::RefCounted<PublicRefCountedDtorInHeader> {
8 ./base_refcounted.h:59:3: warning: [chromium-style] Classes that are ref-counted should have destructors that are declared protected or private.
9 ~PublicRefCountedThreadSafeDtorInHeader() {}
11 ./base_refcounted.h:55:7: note: [chromium-style] 'PublicRefCountedThreadSafeDtorInHeader' inherits from 'base::RefCountedThreadSafe<PublicRefCountedThreadSafeDtorInHeader>' here
12 : public base::RefCountedThreadSafe<
14 ./base_refcounted.h:73:3: warning: [chromium-style] Classes that are ref-counted and have non-private destructors should declare their destructor virtual.
15 ~ProtectedRefCountedDtorInHeader() {}
17 ./base_refcounted.h:110:3: warning: [chromium-style] Classes that are ref-counted should have destructors that are declared protected or private.
18 ~DerivedProtectedToPublicInHeader() override {}
20 ./base_refcounted.h:107:7: note: [chromium-style] 'DerivedProtectedToPublicInHeader' inherits from 'ProtectedRefCountedVirtualDtorInHeader' here
21 : public ProtectedRefCountedVirtualDtorInHeader {
23 ./base_refcounted.h:81:7: note: [chromium-style] 'ProtectedRefCountedVirtualDtorInHeader' inherits from 'base::RefCounted<ProtectedRefCountedVirtualDtorInHeader>' here
24 : public base::RefCounted<ProtectedRefCountedVirtualDtorInHeader> {
26 ./base_refcounted.h:115:7: warning: [chromium-style] Classes that are ref-counted should have explicit destructors that are declared protected or private.
27 class ImplicitDerivedProtectedToPublicInHeader
29 ./base_refcounted.h:116:7: note: [chromium-style] 'ImplicitDerivedProtectedToPublicInHeader' inherits from 'ProtectedRefCountedVirtualDtorInHeader' here
30 : public ProtectedRefCountedVirtualDtorInHeader {
32 ./base_refcounted.h:81:7: note: [chromium-style] 'ProtectedRefCountedVirtualDtorInHeader' inherits from 'base::RefCounted<ProtectedRefCountedVirtualDtorInHeader>' here
33 : public base::RefCounted<ProtectedRefCountedVirtualDtorInHeader> {
35 ./base_refcounted.h:145:1: warning: [chromium-style] Classes that are ref-counted should have destructors that are declared protected or private.
36 class ImplementsAPublicInterface
38 ./base_refcounted.h:147:7: note: [chromium-style] 'ImplementsAPublicInterface' inherits from 'base::RefCounted<ImplementsAPublicInterface>' here
39 public base::RefCounted<ImplementsAPublicInterface> {
41 ./base_refcounted.h:139:3: note: [chromium-style] Public destructor declared here
42 virtual ~APublicInterface() {}
44 ./base_refcounted.h:146:7: note: [chromium-style] 'ImplementsAPublicInterface' inherits from 'APublicInterface' here
45 : public APublicInterface,
47 ./base_refcounted.h:164:1: warning: [chromium-style] Classes that are ref-counted should have explicit destructors that are declared protected or private.
48 class ImplementsAnImplicitInterface
50 ./base_refcounted.h:166:7: note: [chromium-style] 'ImplementsAnImplicitInterface' inherits from 'base::RefCounted<ImplementsAnImplicitInterface>' here
51 public base::RefCounted<ImplementsAnImplicitInterface> {
53 ./base_refcounted.h:158:7: note: [chromium-style] No explicit destructor for 'AnImplicitInterface' defined
54 class AnImplicitInterface {
56 ./base_refcounted.h:165:7: note: [chromium-style] 'ImplementsAnImplicitInterface' inherits from 'AnImplicitInterface' here
57 : public AnImplicitInterface,
59 ./base_refcounted.h:204:3: warning: [chromium-style] Classes that are ref-counted and have non-private destructors should declare their destructor virtual.
62 ./base_refcounted.h:204:3: warning: [chromium-style] Classes that are ref-counted and have non-private destructors should declare their destructor virtual.
63 base_refcounted.cpp:16:3: warning: [chromium-style] Classes that are ref-counted should have destructors that are declared protected or private.
64 ~AnonymousDerivedProtectedToPublicInImpl() override {}
66 base_refcounted.cpp:13:7: note: [chromium-style] 'AnonymousDerivedProtectedToPublicInImpl' inherits from 'ProtectedRefCountedVirtualDtorInHeader' here
67 : public ProtectedRefCountedVirtualDtorInHeader {
69 ./base_refcounted.h:81:7: note: [chromium-style] 'ProtectedRefCountedVirtualDtorInHeader' inherits from 'base::RefCounted<ProtectedRefCountedVirtualDtorInHeader>' here
70 : public base::RefCounted<ProtectedRefCountedVirtualDtorInHeader> {
72 ./base_refcounted.h:73:3: warning: [chromium-style] Classes that are ref-counted and have non-private destructors should declare their destructor virtual.
73 ~ProtectedRefCountedDtorInHeader() {}
75 base_refcounted.cpp:33:3: warning: [chromium-style] Classes that are ref-counted should have destructors that are declared protected or private.
76 ~PublicRefCountedDtorInImpl() {}
78 base_refcounted.cpp:30:7: note: [chromium-style] 'PublicRefCountedDtorInImpl' inherits from 'base::RefCounted<PublicRefCountedDtorInImpl>' here
79 : public base::RefCounted<PublicRefCountedDtorInImpl> {
81 base_refcounted.cpp:59:3: warning: [chromium-style] Classes that are ref-counted should have destructors that are declared protected or private.
82 ~UnsafeTypedefChainInImpl() {}
84 base_refcounted.cpp:56:34: note: [chromium-style] 'UnsafeTypedefChainInImpl' inherits from 'Baz::MyLocalTypedef' (aka 'RefCounted<Foo::BarInterface>') here
85 class UnsafeTypedefChainInImpl : public Baz::MyLocalTypedef {
87 13 warnings generated.