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

Unified Diff: tools/clang/blink_gc_plugin/Config.h

Issue 430213003: Blink GC plugin: Require that fields are actually traced by the visitor and identify tracing of dep… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TraceIfNeeded support Created 6 years, 4 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/Config.h
diff --git a/tools/clang/blink_gc_plugin/Config.h b/tools/clang/blink_gc_plugin/Config.h
index 9dc97798821919d93237a56d17e07a44b514d12e..48f611b3f442eb491d4a2bd9d75d2fe54dfe41e8 100644
--- a/tools/clang/blink_gc_plugin/Config.h
+++ b/tools/clang/blink_gc_plugin/Config.h
@@ -17,6 +17,7 @@ const char kFinalizeName[] = "finalizeGarbageCollectedObject";
const char kTraceAfterDispatchName[] = "traceAfterDispatch";
const char kRegisterWeakMembersName[] = "registerWeakMembers";
const char kHeapAllocatorName[] = "HeapAllocator";
+const char kTraceIfNeededName[] = "TraceIfNeeded";
class Config {
public:
@@ -139,7 +140,7 @@ class Config {
static bool IsVisitor(const std::string& name) { return name == "Visitor"; }
- static bool IsTraceMethod(clang::CXXMethodDecl* method,
+ static bool IsTraceMethod(clang::FunctionDecl* method,
bool* isTraceAfterDispatch = 0) {
if (method->getNumParams() != 1)
return false;
« no previous file with comments | « tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp ('k') | tools/clang/blink_gc_plugin/tests/class_requires_finalization_base.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698