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

Side by Side Diff: tools/clang/blink_gc_plugin/tests/pure_virtual_trace.h

Issue 278513005: Blink GC plugin: disallow pure-virtual trace methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove pure related code Created 6 years, 7 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 PURE_VIRTUAL_BASE_H_ 5 #ifndef PURE_VIRTUAL_TRACE_H_
6 #define PURE_VIRTUAL_BASE_H_ 6 #define PURE_VIRTUAL_TRACE_H_
7 7
8 #include "heap/stubs.h" 8 #include "heap/stubs.h"
9 9
10 namespace WebCore { 10 namespace WebCore {
11 11
12 class A : public GarbageCollected<A> { 12 class A : public GarbageCollected<A> {
13 public: 13 public:
14 virtual void trace(Visitor*) = 0; 14 virtual void trace(Visitor*) = 0;
15 }; 15 };
16 16
17 class B : public A {
18 public:
19 // Does not need a trace method.
20 };
21
22 class C : public B {
23 public:
24 void trace(Visitor*);
25 private:
26 Member<A> m_a;
27 };
28
29 } 17 }
30 18
31 #endif 19 #endif
OLDNEW
« no previous file with comments | « tools/clang/blink_gc_plugin/RecordInfo.cpp ('k') | tools/clang/blink_gc_plugin/tests/pure_virtual_trace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698