BadPatternFinder.h 442 B

12345678910111213
  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. class DiagnosticsReporter;
  5. namespace clang {
  6. class ASTContext;
  7. } // namespace clang
  8. // Detects and reports use of banned patterns, such as applying
  9. // std::make_unique to a garbage-collected type.
  10. void FindBadPatterns(clang::ASTContext& ast_context, DiagnosticsReporter&);