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

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: 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/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 f8fde065babc844096fe4155a005b82500a393da..b674048ea8ac75a5cb27c2de51e80556a4ab985c 100644
--- a/tools/clang/blink_gc_plugin/tests/heap/stubs.h
+++ b/tools/clang/blink_gc_plugin/tests/heap/stubs.h
@@ -190,8 +190,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
@@ -280,13 +280,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
@@ -295,19 +295,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*);
};
}
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/garbage_collected_mixin.txt ('k') | tools/clang/blink_gc_plugin/tests/ignore_class.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698