summaryrefslogtreecommitdiffstats
path: root/clang-tidy/modernize/DeprecatedHeadersCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tidy/modernize/DeprecatedHeadersCheck.cpp')
-rw-r--r--clang-tidy/modernize/DeprecatedHeadersCheck.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/clang-tidy/modernize/DeprecatedHeadersCheck.cpp b/clang-tidy/modernize/DeprecatedHeadersCheck.cpp
index 1ff3f898..af4d47c0 100644
--- a/clang-tidy/modernize/DeprecatedHeadersCheck.cpp
+++ b/clang-tidy/modernize/DeprecatedHeadersCheck.cpp
@@ -1,9 +1,8 @@
//===--- DeprecatedHeadersCheck.cpp - 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
//
//===----------------------------------------------------------------------===//
@@ -41,11 +40,11 @@ private:
};
} // namespace
-void DeprecatedHeadersCheck::registerPPCallbacks(CompilerInstance &Compiler) {
- if (this->getLangOpts().CPlusPlus) {
- Compiler.getPreprocessor().addPPCallbacks(
- ::llvm::make_unique<IncludeModernizePPCallbacks>(*this,
- this->getLangOpts()));
+void DeprecatedHeadersCheck::registerPPCallbacks(
+ const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
+ if (getLangOpts().CPlusPlus) {
+ PP->addPPCallbacks(
+ ::llvm::make_unique<IncludeModernizePPCallbacks>(*this, getLangOpts()));
}
}