Index: tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp |
diff --git a/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp b/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp |
index dc36bef4145e325e87d5553d339eaeb673e33cc2..25c6a68fc5b39f3a85e134199d53bcb7bf369420 100644 |
--- a/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp |
+++ b/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp |
@@ -1125,7 +1125,8 @@ class BlinkGCPluginConsumer : public ASTConsumer { |
CheckLeftMostDerived(info); |
CheckDispatch(info); |
if (CXXMethodDecl* newop = info->DeclaresNewOperator()) |
- ReportClassOverridesNew(info, newop); |
+ if (!Config::IsIgnoreAnnotated(newop)) |
+ ReportClassOverridesNew(info, newop); |
if (info->IsGCMixinInstance()) { |
// Require that declared GCMixin implementations |
// also provide a trace() override. |