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

Unified Diff: tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.h

Issue 292743006: Blink GC plugin: disallow GC derived types as part-object fields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: support for mixin part objects 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 side-by-side diff with in-line comments
Download patch
Index: tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.h
diff --git a/tools/clang/blink_gc_plugin/tests/destructor_in_nonfinalized_class.h b/tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.h
similarity index 58%
copy from tools/clang/blink_gc_plugin/tests/destructor_in_nonfinalized_class.h
copy to tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.h
index 0e1c81516ce8ed9d986bb220cb9536225f14a417..ad5850248bf786bb576d7bce82f2ad4bd60855f1 100644
--- a/tools/clang/blink_gc_plugin/tests/destructor_in_nonfinalized_class.h
+++ b/tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.h
@@ -2,19 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef DESTRUCTOR_IN_NONFINALIZED_CLASS_H_
-#define DESTRUCTOR_IN_NONFINALIZED_CLASS_H_
+#ifndef PART_OBJECT_TO_GC_DERIVED_CLASS_H_
+#define PART_OBJECT_TO_GC_DERIVED_CLASS_H_
#include "heap/stubs.h"
namespace WebCore {
-class HeapObject : public GarbageCollected<HeapObject> {
+class A : public GarbageCollected<A> { };
+
+class B : public GarbageCollected<B> {
public:
- ~HeapObject();
void trace(Visitor*);
private:
- Member<HeapObject> m_obj;
+ A m_a;
};
}
« no previous file with comments | « tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp ('k') | tools/clang/blink_gc_plugin/tests/part_object_to_gc_derived_class.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698