BadPatternFinder.h 542 B

12345678910111213141516
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. struct BlinkGCPluginOptions;
  5. class DiagnosticsReporter;
  6. namespace clang {
  7. class ASTContext;
  8. } // namespace clang
  9. // Detects and reports use of banned patterns, such as applying
  10. // std::make_unique to a garbage-collected type.
  11. void FindBadPatterns(clang::ASTContext& ast_context,
  12. DiagnosticsReporter&,
  13. const BlinkGCPluginOptions&);