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

Side by Side Diff: tools/clang/plugins/tests/base_refcounted.h

Issue 1493813003: Convert the no-inline-virtuals rule into a constructors rule. Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Rebase onto https://codereview.chromium.org/1504033010 Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_REFCOUNTED_H_ 5 #ifndef BASE_REFCOUNTED_H_
6 #define BASE_REFCOUNTED_H_ 6 #define BASE_REFCOUNTED_H_
7 7
8 namespace base { 8 namespace base {
9 9
10 template <typename T> 10 template <typename T>
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 public SomeOtherInterface, 210 public SomeOtherInterface,
211 public RefcountedType { 211 public RefcountedType {
212 public: 212 public:
213 // DerivedInterface 213 // DerivedInterface
214 void DoFoo() override {} 214 void DoFoo() override {}
215 215
216 // SomeOtherInterface 216 // SomeOtherInterface
217 void DoBar() override {} 217 void DoBar() override {}
218 218
219 protected: 219 protected:
220 UnsafeInheritanceChain() {}
220 ~UnsafeInheritanceChain() override {} 221 ~UnsafeInheritanceChain() override {}
221 }; 222 };
222 223
223 #endif // BASE_REFCOUNTED_H_ 224 #endif // BASE_REFCOUNTED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698