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

Unified Diff: tools/clang/blink_gc_plugin/tests/heap/stubs.h

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « tools/clang/blink_gc_plugin/Config.h ('k') | tools/clang/scripts/update.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/blink_gc_plugin/tests/heap/stubs.h
diff --git a/tools/clang/blink_gc_plugin/tests/heap/stubs.h b/tools/clang/blink_gc_plugin/tests/heap/stubs.h
index 7d646cdf85d2b4ee01beda24ded85b5ddef541eb..5281b126b49d36ca1ff8e14b6566333e470093cc 100644
--- a/tools/clang/blink_gc_plugin/tests/heap/stubs.h
+++ b/tools/clang/blink_gc_plugin/tests/heap/stubs.h
@@ -204,11 +204,15 @@ class HeapHashMap : public HashMap<K, V, void, void, void, HeapAllocator> { };
template<typename T>
class PersistentHeapVector : public Vector<T, 0, HeapAllocator> { };
-class Visitor {
+template <typename Derived>
+class VisitorHelper {
public:
template<typename T>
void trace(const T&);
+};
+class Visitor : public VisitorHelper<Visitor> {
+ public:
template<typename T, void (T::*method)(Visitor*)>
void registerWeakMembers(const T* obj);
};
« no previous file with comments | « tools/clang/blink_gc_plugin/Config.h ('k') | tools/clang/scripts/update.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698