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

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

Issue 2685583002: blink_gc_plugin: warn of unused trace methods to stack allocated classes. (Closed)
Patch Set: rebased upto r449038 Created 3 years, 10 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/stack_allocated.h
diff --git a/tools/clang/blink_gc_plugin/tests/stack_allocated.h b/tools/clang/blink_gc_plugin/tests/stack_allocated.h
index 574219c594cf92c9f7035b7dfc05d856fd26726d..50a4632a987270865964e6a61fe6de6fe52014c2 100644
--- a/tools/clang/blink_gc_plugin/tests/stack_allocated.h
+++ b/tools/clang/blink_gc_plugin/tests/stack_allocated.h
@@ -19,6 +19,10 @@ private:
class StackObject {
STACK_ALLOCATED();
+
+ // Redundant trace() method, warning/error expected.
+ void Trace(Visitor* visitor) { visitor->Trace(m_obj); }
+
private:
Member<HeapObject> m_obj; // Does not need tracing.
};

Powered by Google App Engine
This is Rietveld 408576698