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

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

Issue 2578103003: Add use-chromium-style-naming option to Blink GC plugin. (Closed)
Patch Set: Copy and paste tests 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/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 813ab127001bcc3913ebc6c18e908c5fa952790c..aaf56622c1f435d1cf98d866d77a412e598f70d0 100644
--- a/tools/clang/blink_gc_plugin/tests/heap/stubs.h
+++ b/tools/clang/blink_gc_plugin/tests/heap/stubs.h
@@ -161,8 +161,8 @@ using namespace WTF;
#define USING_GARBAGE_COLLECTED_MIXIN(type) \
public: \
- virtual void adjustAndMark(Visitor*) const override { } \
- virtual bool isHeapObjectAlive(Visitor*) const override { return 0; }
+ virtual void AdjustAndMark(Visitor*) const override { } \
+ virtual bool IsHeapObjectAlive(Visitor*) const override { return 0; }
#define EAGERLY_FINALIZED() typedef int IsEagerlyFinalizedMarker
@@ -251,13 +251,13 @@ template <typename Derived>
class VisitorHelper {
public:
template<typename T>
- void trace(const T&);
+ void Trace(const T&);
};
class Visitor : public VisitorHelper<Visitor> {
public:
template<typename T, void (T::*method)(Visitor*)>
- void registerWeakMembers(const T* obj);
+ void RegisterWeakMembers(const T* obj);
};
class InlinedGlobalMarkingVisitor
@@ -266,19 +266,19 @@ public:
InlinedGlobalMarkingVisitor* operator->() { return this; }
template<typename T, void (T::*method)(Visitor*)>
- void registerWeakMembers(const T* obj);
+ void RegisterWeakMembers(const T* obj);
};
class GarbageCollectedMixin {
public:
- virtual void adjustAndMark(Visitor*) const = 0;
- virtual bool isHeapObjectAlive(Visitor*) const = 0;
- virtual void trace(Visitor*) { }
+ virtual void AdjustAndMark(Visitor*) const = 0;
+ virtual bool IsHeapObjectAlive(Visitor*) const = 0;
+ virtual void Trace(Visitor*) { }
};
template<typename T>
struct TraceIfNeeded {
- static void trace(Visitor*, T*);
+ static void Trace(Visitor*, T*);
};
}

Powered by Google App Engine
This is Rietveld 408576698