chromium/tools/clang/blink_gc_plugin/BadPatternFinder.h

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

struct BlinkGCPluginOptions;
class DiagnosticsReporter;
class RecordCache;

namespace clang {
class ASTContext;
}  // namespace clang

// Detects and reports use of banned patterns, such as applying
// std::make_unique to a garbage-collected type.
void FindBadPatterns(clang::ASTContext& ast_context,
                     DiagnosticsReporter&,
                     RecordCache& record_cache,
                     const BlinkGCPluginOptions&);