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 71b82ca43665f299f9a588a8ce0391552a037da2..c109a12a6406d7e3e4534a8a2ad00553afabeba3 100644 |
--- a/tools/clang/blink_gc_plugin/Config.h |
+++ b/tools/clang/blink_gc_plugin/Config.h |
@@ -73,6 +73,12 @@ class Config { |
IsPersistentGCCollection(name); |
} |
+ static bool IsVector(const std::string& name) { |
+ return name == "Vector" || |
+ name == "HeapVector" || |
+ name == "PersistentHeapVector"; |
+ } |
+ |
static bool IsHashMap(const std::string& name) { |
return name == "HashMap" || |
name == "HeapHashMap" || |
@@ -90,13 +96,13 @@ class Config { |
static bool IsGCFinalizedBase(const std::string& name) { |
return name == "GarbageCollectedFinalized" || |
- name == "RefCountedGarbageCollected"; |
+ name == "RefCountedGarbageCollected" || |
+ IsGCMixinBase(name);; |
} |
static bool IsGCBase(const std::string& name) { |
return name == "GarbageCollected" || |
- IsGCFinalizedBase(name) || |
- IsGCMixinBase(name); |
+ IsGCFinalizedBase(name); |
} |
static bool IsVisitor(const std::string& name) { return name == "Visitor"; } |