summaryrefslogtreecommitdiffstats
path: root/clang-tidy/abseil/StringFindStartswithCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tidy/abseil/StringFindStartswithCheck.cpp')
-rw-r--r--clang-tidy/abseil/StringFindStartswithCheck.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/clang-tidy/abseil/StringFindStartswithCheck.cpp b/clang-tidy/abseil/StringFindStartswithCheck.cpp
index 2701c24b..3fd9fd47 100644
--- a/clang-tidy/abseil/StringFindStartswithCheck.cpp
+++ b/clang-tidy/abseil/StringFindStartswithCheck.cpp
@@ -1,9 +1,8 @@
//===--- StringFindStartswithCheck.cc - clang-tidy---------------*- C++ -*-===//
//
-// 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
//
//===----------------------------------------------------------------------===//
@@ -115,11 +114,10 @@ void StringFindStartswithCheck::check(const MatchFinder::MatchResult &Result) {
}
void StringFindStartswithCheck::registerPPCallbacks(
- CompilerInstance &Compiler) {
- IncludeInserter = llvm::make_unique<clang::tidy::utils::IncludeInserter>(
- Compiler.getSourceManager(), Compiler.getLangOpts(), IncludeStyle);
- Compiler.getPreprocessor().addPPCallbacks(
- IncludeInserter->CreatePPCallbacks());
+ const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
+ IncludeInserter = llvm::make_unique<utils::IncludeInserter>(SM, getLangOpts(),
+ IncludeStyle);
+ PP->addPPCallbacks(IncludeInserter->CreatePPCallbacks());
}
void StringFindStartswithCheck::storeOptions(