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

Unified Diff: tools/clang/blink_gc_plugin/tests/trace_after_dispatch.cpp

Issue 1709343002: Remove tools/clang (this will break things temporarily). Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 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/tests/trace_after_dispatch.cpp
diff --git a/tools/clang/blink_gc_plugin/tests/trace_after_dispatch.cpp b/tools/clang/blink_gc_plugin/tests/trace_after_dispatch.cpp
deleted file mode 100644
index c246aaaf0c8bea7b039516e1a2620d07f15c3b66..0000000000000000000000000000000000000000
--- a/tools/clang/blink_gc_plugin/tests/trace_after_dispatch.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "trace_after_dispatch.h"
-
-namespace blink {
-
-static B* toB(A* a) { return static_cast<B*>(a); }
-
-void A::trace(Visitor* visitor)
-{
- switch (m_type) {
- case TB:
- toB(this)->traceAfterDispatch(visitor);
- break;
- case TC:
- static_cast<C*>(this)->traceAfterDispatch(visitor);
- break;
- case TD:
- // Missing static_cast<D*>(this)->traceAfterDispatch(visitor);
- break;
- }
-}
-
-void A::traceAfterDispatch(Visitor* visitor)
-{
-}
-
-void B::traceAfterDispatch(Visitor* visitor)
-{
- visitor->trace(m_a);
- // Missing A::traceAfterDispatch(visitor);
- // Also check that calling trace does not count.
- A::trace(visitor);
-}
-
-void C::traceAfterDispatch(Visitor* visitor)
-{
- // Missing visitor->trace(m_a);
- A::traceAfterDispatch(visitor);
-}
-
-void D::traceAfterDispatch(Visitor* visitor)
-{
- visitor->trace(m_a);
- Abstract::traceAfterDispatch(visitor);
-}
-
-}
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/trace_after_dispatch.h ('k') | tools/clang/blink_gc_plugin/tests/trace_after_dispatch.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698