aboutsummaryrefslogtreecommitdiff
path: root/tools/clang/blink_gc_plugin/tests/traceimpl_overloaded_error.cpp
blob: 80d0f65bc50f89efdae1d3b4e3a36a04a3a23ec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2015 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 "traceimpl_overloaded_error.h"

namespace blink {

void ExternBase::Trace(Visitor* visitor) {
  TraceImpl(visitor);
}

void ExternBase::Trace(InlinedGlobalMarkingVisitor visitor) {
  TraceImpl(visitor);
}

template <typename VisitorDispatcher>
inline void ExternBase::TraceImpl(VisitorDispatcher visitor) {
  // Missing visitor->Trace(x_base_).
}

void ExternDerived::Trace(Visitor* visitor) {
  TraceImpl(visitor);
}

void ExternDerived::Trace(InlinedGlobalMarkingVisitor visitor) {
  TraceImpl(visitor);
}

template <typename VisitorDispatcher>
inline void ExternDerived::TraceImpl(VisitorDispatcher visitor) {
  // Missing visitor->Trace(x_derived_) and ExternBase::Trace(visitor).
}

}