summaryrefslogtreecommitdiffstats
path: root/clang-tidy/utils/IncludeInserter.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tidy/utils/IncludeInserter.h')
-rw-r--r--clang-tidy/utils/IncludeInserter.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/clang-tidy/utils/IncludeInserter.h b/clang-tidy/utils/IncludeInserter.h
index 9578649d..36c16aca 100644
--- a/clang-tidy/utils/IncludeInserter.h
+++ b/clang-tidy/utils/IncludeInserter.h
@@ -1,9 +1,8 @@
//===---------- IncludeInserter.h - clang-tidy ----------------------------===//
//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
@@ -32,11 +31,11 @@ namespace utils {
///
/// class MyCheck : public ClangTidyCheck {
/// public:
-/// void registerPPCallbacks(CompilerInstance& Compiler) override {
-/// Inserter = llvm::make_unique<IncludeInserter>(&Compiler.getSourceManager(),
-/// &Compiler.getLangOpts());
-/// Compiler.getPreprocessor().addPPCallbacks(
-/// Inserter->CreatePPCallbacks());
+/// void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
+/// Preprocessor *ModuleExpanderPP) override {
+/// Inserter = llvm::make_unique<IncludeInserter>(
+/// SM, getLangOpts(), utils::IncludeSorter::IS_Google);
+/// PP->addPPCallbacks(Inserter->CreatePPCallbacks());
/// }
///
/// void registerMatchers(ast_matchers::MatchFinder* Finder) override { ... }