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

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

Issue 2578103003: Add use-chromium-style-naming option to Blink GC plugin. (Closed)
Patch Set: Rebase Created 4 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
Index: tools/clang/blink_gc_plugin/tests/class_requires_finalization_field.h
diff --git a/tools/clang/blink_gc_plugin/tests/class_requires_finalization_field.h b/tools/clang/blink_gc_plugin/tests/class_requires_finalization_field.h
index 9596127476ac4db433c3f5352f4d79efb0d04027..a585f3f778c41a01f7c21582d7dc96259f486f7f 100644
--- a/tools/clang/blink_gc_plugin/tests/class_requires_finalization_field.h
+++ b/tools/clang/blink_gc_plugin/tests/class_requires_finalization_field.h
@@ -11,20 +11,20 @@ namespace blink {
class A : public GarbageCollected<A> {
public:
- virtual void trace(Visitor*) { }
+ virtual void Trace(Visitor*) { }
};
// Has a non-trivial dtor (user-declared).
class B {
public:
~B() { }
- void trace(Visitor*) { };
+ void Trace(Visitor*) { };
};
// Has a trivial dtor.
class C {
public:
- void trace(Visitor*) { };
+ void Trace(Visitor*) { };
};
} // blink namespace
@@ -43,7 +43,7 @@ namespace blink {
// Off-heap vectors always need to be finalized.
class NeedsFinalizer : public A {
public:
- void trace(Visitor*);
+ void Trace(Visitor*);
private:
Vector<Member<A> > m_as;
};
@@ -52,7 +52,7 @@ private:
// need to be finalized.
class AlsoNeedsFinalizer : public A {
public:
- void trace(Visitor*);
+ void Trace(Visitor*);
private:
HeapVector<B, 10> m_bs;
};
@@ -60,7 +60,7 @@ private:
// On-heap vectors with no inlined objects never need to be finalized.
class DoesNotNeedFinalizer : public A {
public:
- void trace(Visitor*);
+ void Trace(Visitor*);
private:
HeapVector<B> m_bs;
};
@@ -69,7 +69,7 @@ private:
// don't need to be finalized.
class AlsoDoesNotNeedFinalizer : public A {
public:
- void trace(Visitor*);
+ void Trace(Visitor*);
private:
HeapVector<Member<A>, 10> m_as;
HeapVector<C, 10> m_cs;

Powered by Google App Engine
This is Rietveld 408576698