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

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

Issue 2060553002: GC plugin: improve error reporting when tracing illegal fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FIELDS_ILLEGAL_TRACING_H_
6 #define FIELDS_ILLEGAL_TRACING_H_
7
8 #include "heap/stubs.h"
9
10 namespace blink {
11
12 class HeapObject;
13 class PartObject;
14
15 class PartObject {
16 DISALLOW_ALLOCATION();
17 public:
18 void trace(Visitor*);
19 private:
20 OwnPtr<HeapObject> m_obj1;
21 std::unique_ptr<HeapObject> m_obj2;
22 RefPtr<HeapObject> m_obj3;
23 };
24
25 class HeapObject : public GarbageCollectedFinalized<HeapObject> {
26 public:
27 void trace(Visitor*);
28 private:
29 PartObject m_part;
30 OwnPtr<HeapObject> m_obj1;
31 RefPtr<HeapObject> m_obj2;
32 std::unique_ptr<HeapObject> m_obj3;
33 };
34
35 }
36
37 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698