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

Side by Side Diff: tools/clang/blink_gc_plugin/tests/stack_allocated.txt

Issue 1173333003: GC plugin: enable plugin on anonymous namespaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/stack_allocated.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 In file included from stack_allocated.cpp:5: 1 In file included from stack_allocated.cpp:5:
2 ./stack_allocated.h:14:1: warning: [blink-gc] Class 'PartObject' requires a trac e method. 2 ./stack_allocated.h:14:1: warning: [blink-gc] Class 'PartObject' requires a trac e method.
3 class PartObject { 3 class PartObject {
4 ^ 4 ^
5 ./stack_allocated.h:17:5: note: [blink-gc] Untraced field 'm_obj' declared here: 5 ./stack_allocated.h:17:5: note: [blink-gc] Untraced field 'm_obj' declared here:
6 Member<HeapObject> m_obj; // Needs tracing. 6 Member<HeapObject> m_obj; // Needs tracing.
7 ^ 7 ^
8 ./stack_allocated.h:26:28: warning: [blink-gc] Stack-allocated class 'AnotherSta ckObject' derives class 'PartObject' which is not stack allocated. 8 ./stack_allocated.h:26:28: warning: [blink-gc] Stack-allocated class 'AnotherSta ckObject' derives class 'PartObject' which is not stack allocated.
9 class AnotherStackObject : public PartObject { // Invalid base. 9 class AnotherStackObject : public PartObject { // Invalid base.
10 ^ 10 ^
11 ./stack_allocated.h:32:1: warning: [blink-gc] Class 'HeapObject' contains invali d fields. 11 ./stack_allocated.h:32:1: warning: [blink-gc] Class 'HeapObject' contains invali d fields.
12 class HeapObject : public GarbageCollected<HeapObject> { 12 class HeapObject : public GarbageCollected<HeapObject> {
13 ^ 13 ^
14 ./stack_allocated.h:36:5: note: [blink-gc] Stack-allocated field 'm_part' declar ed here: 14 ./stack_allocated.h:36:5: note: [blink-gc] Stack-allocated field 'm_part' declar ed here:
15 StackObject m_part; // Cannot embed a stack allocated object. 15 StackObject m_part; // Cannot embed a stack allocated object.
16 ^ 16 ^
17 3 warnings generated. 17 stack_allocated.cpp:12:1: warning: [blink-gc] Class 'AnonStackObject' contains i nvalid fields.
18 class AnonStackObject : public StackObject {
19 ^
20 stack_allocated.cpp:14:5: note: [blink-gc] Raw pointer field 'm_obj' to a GC man aged class declared here:
21 HeapObject* m_obj;
22 ^
23 4 warnings generated.
OLDNEW
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/stack_allocated.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698