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

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

Issue 2578103003: Add use-chromium-style-naming option to Blink GC plugin. (Closed)
Patch Set: Rebase Created 3 years, 12 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
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 CLASS_DOES_NOT_REQUIRE_FINALIZATION_BASE_H_ 5 #ifndef CLASS_DOES_NOT_REQUIRE_FINALIZATION_BASE_H_
6 #define CLASS_DOES_NOT_REQUIRE_FINALIZATION_BASE_H_ 6 #define CLASS_DOES_NOT_REQUIRE_FINALIZATION_BASE_H_
7 7
8 #include "heap/stubs.h" 8 #include "heap/stubs.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class DoesNeedFinalizer : public GarbageCollectedFinalized<DoesNeedFinalizer> { 12 class DoesNeedFinalizer : public GarbageCollectedFinalized<DoesNeedFinalizer> {
13 public: 13 public:
14 ~DoesNeedFinalizer() { ; } 14 ~DoesNeedFinalizer() { ; }
15 void trace(Visitor*); 15 void Trace(Visitor*);
16 }; 16 };
17 17
18 class DoesNotNeedFinalizer 18 class DoesNotNeedFinalizer
19 : public GarbageCollectedFinalized<DoesNotNeedFinalizer> { 19 : public GarbageCollectedFinalized<DoesNotNeedFinalizer> {
20 public: 20 public:
21 void trace(Visitor*); 21 void Trace(Visitor*);
22 }; 22 };
23 23
24 class DoesNotNeedFinalizer2 24 class DoesNotNeedFinalizer2
25 : public GarbageCollectedFinalized<DoesNotNeedFinalizer2> { 25 : public GarbageCollectedFinalized<DoesNotNeedFinalizer2> {
26 public: 26 public:
27 ~DoesNotNeedFinalizer2(); 27 ~DoesNotNeedFinalizer2();
28 void trace(Visitor*); 28 void Trace(Visitor*);
29 }; 29 };
30 30
31 class HasEmptyDtor { 31 class HasEmptyDtor {
32 public: 32 public:
33 virtual ~HasEmptyDtor() { } 33 virtual ~HasEmptyDtor() { }
34 }; 34 };
35 35
36 // If there are any virtual destructors involved, give up. 36 // If there are any virtual destructors involved, give up.
37 37
38 class DoesNeedFinalizer2 38 class DoesNeedFinalizer2
39 : public GarbageCollectedFinalized<DoesNeedFinalizer2>, 39 : public GarbageCollectedFinalized<DoesNeedFinalizer2>,
40 public HasEmptyDtor { 40 public HasEmptyDtor {
41 public: 41 public:
42 void trace(Visitor*); 42 void Trace(Visitor*);
43 }; 43 };
44 44
45 } 45 }
46 46
47 #endif 47 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698