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

Side by Side Diff: tools/clang/blink_gc_plugin/tests/stack_allocated_no_warning.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 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 STACK_ALLOCATED_H_
6 #define STACK_ALLOCATED_H_
7
8 #include "heap/stubs.h"
9
10 namespace blink {
11
12 class HeapObject;
13
14 class StackObject {
15 STACK_ALLOCATED();
16
17 // Redundant trace() method, but warning/error disabled.
18 void Trace(Visitor* visitor) { visitor->Trace(m_obj); }
19
20 private:
21 Member<HeapObject> m_obj; // Does not need tracing.
22 };
23
24 }
25
26 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698