1In 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() {} 4 ^ 5./base_refcounted.h:44:7: note: [chromium-style] 'PublicRefCountedDtorInHeader' inherits from 'base::RefCounted<PublicRefCountedDtorInHeader>' here 6 : public base::RefCounted<PublicRefCountedDtorInHeader> { 7 ^ 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() {} 10 ^ 11./base_refcounted.h:55:7: note: [chromium-style] 'PublicRefCountedThreadSafeDtorInHeader' inherits from 'base::RefCountedThreadSafe<PublicRefCountedThreadSafeDtorInHeader>' here 12 : public base::RefCountedThreadSafe< 13 ^ 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() {} 16 ^ 17./base_refcounted.h:110:3: warning: [chromium-style] Classes that are ref-counted should have destructors that are declared protected or private. 18 virtual ~DerivedProtectedToPublicInHeader() {} 19 ^ 20./base_refcounted.h:107:7: note: [chromium-style] 'DerivedProtectedToPublicInHeader' inherits from 'ProtectedRefCountedVirtualDtorInHeader' here 21 : public ProtectedRefCountedVirtualDtorInHeader { 22 ^ 23./base_refcounted.h:81:7: note: [chromium-style] 'ProtectedRefCountedVirtualDtorInHeader' inherits from 'base::RefCounted<ProtectedRefCountedVirtualDtorInHeader>' here 24 : public base::RefCounted<ProtectedRefCountedVirtualDtorInHeader> { 25 ^ 26./base_refcounted.h:115:7: warning: [chromium-style] Classes that are ref-counted should have explicit destructors that are declared protected or private. 27class ImplicitDerivedProtectedToPublicInHeader 28 ^ 29./base_refcounted.h:116:7: note: [chromium-style] 'ImplicitDerivedProtectedToPublicInHeader' inherits from 'ProtectedRefCountedVirtualDtorInHeader' here 30 : public ProtectedRefCountedVirtualDtorInHeader { 31 ^ 32./base_refcounted.h:81:7: note: [chromium-style] 'ProtectedRefCountedVirtualDtorInHeader' inherits from 'base::RefCounted<ProtectedRefCountedVirtualDtorInHeader>' here 33 : public base::RefCounted<ProtectedRefCountedVirtualDtorInHeader> { 34 ^ 35./base_refcounted.h:145:1: warning: [chromium-style] Classes that are ref-counted should have destructors that are declared protected or private. 36class ImplementsAPublicInterface 37^ 38./base_refcounted.h:147:7: note: [chromium-style] 'ImplementsAPublicInterface' inherits from 'base::RefCounted<ImplementsAPublicInterface>' here 39 public base::RefCounted<ImplementsAPublicInterface> { 40 ^ 41./base_refcounted.h:139:3: note: [chromium-style] Public destructor declared here 42 virtual ~APublicInterface() {} 43 ^ 44./base_refcounted.h:146:7: note: [chromium-style] 'ImplementsAPublicInterface' inherits from 'APublicInterface' here 45 : public APublicInterface, 46 ^ 47./base_refcounted.h:164:1: warning: [chromium-style] Classes that are ref-counted should have explicit destructors that are declared protected or private. 48class ImplementsAnImplicitInterface 49^ 50./base_refcounted.h:166:7: note: [chromium-style] 'ImplementsAnImplicitInterface' inherits from 'base::RefCounted<ImplementsAnImplicitInterface>' here 51 public base::RefCounted<ImplementsAnImplicitInterface> { 52 ^ 53./base_refcounted.h:158:7: note: [chromium-style] No explicit destructor for 'AnImplicitInterface' defined 54class AnImplicitInterface { 55 ^ 56./base_refcounted.h:165:7: note: [chromium-style] 'ImplementsAnImplicitInterface' inherits from 'AnImplicitInterface' here 57 : public AnImplicitInterface, 58 ^ 59./base_refcounted.h:204:3: warning: [chromium-style] Classes that are ref-counted and have non-private destructors should declare their destructor virtual. 60 ~RefcountedType() {} 61 ^ 62./base_refcounted.h:204:3: warning: [chromium-style] Classes that are ref-counted and have non-private destructors should declare their destructor virtual. 63base_refcounted.cpp:16:3: warning: [chromium-style] Classes that are ref-counted should have destructors that are declared protected or private. 64 virtual ~AnonymousDerivedProtectedToPublicInImpl() {} 65 ^ 66base_refcounted.cpp:13:7: note: [chromium-style] 'AnonymousDerivedProtectedToPublicInImpl' inherits from 'ProtectedRefCountedVirtualDtorInHeader' here 67 : public ProtectedRefCountedVirtualDtorInHeader { 68 ^ 69./base_refcounted.h:81:7: note: [chromium-style] 'ProtectedRefCountedVirtualDtorInHeader' inherits from 'base::RefCounted<ProtectedRefCountedVirtualDtorInHeader>' here 70 : public base::RefCounted<ProtectedRefCountedVirtualDtorInHeader> { 71 ^ 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() {} 74 ^ 75base_refcounted.cpp:33:3: warning: [chromium-style] Classes that are ref-counted should have destructors that are declared protected or private. 76 ~PublicRefCountedDtorInImpl() {} 77 ^ 78base_refcounted.cpp:30:7: note: [chromium-style] 'PublicRefCountedDtorInImpl' inherits from 'base::RefCounted<PublicRefCountedDtorInImpl>' here 79 : public base::RefCounted<PublicRefCountedDtorInImpl> { 80 ^ 81base_refcounted.cpp:59:3: warning: [chromium-style] Classes that are ref-counted should have destructors that are declared protected or private. 82 ~UnsafeTypedefChainInImpl() {} 83 ^ 84base_refcounted.cpp:56:34: note: [chromium-style] 'UnsafeTypedefChainInImpl' inherits from 'Baz::MyLocalTypedef' (aka 'RefCounted<Foo::BarInterface>') here 85class UnsafeTypedefChainInImpl : public Baz::MyLocalTypedef { 86 ^ 8713 warnings generated. 88