diff options
Diffstat (limited to 'clang-tidy/bugprone/MacroRepeatedSideEffectsCheck.h')
-rw-r--r-- | clang-tidy/bugprone/MacroRepeatedSideEffectsCheck.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang-tidy/bugprone/MacroRepeatedSideEffectsCheck.h b/clang-tidy/bugprone/MacroRepeatedSideEffectsCheck.h index a2a31341..0189c7a6 100644 --- a/clang-tidy/bugprone/MacroRepeatedSideEffectsCheck.h +++ b/clang-tidy/bugprone/MacroRepeatedSideEffectsCheck.h @@ -1,16 +1,15 @@ //===--- MacroRepeatedSideEffectsCheck.h - 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 // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_MACROREPEATEDSIDEEFFECTSCHECK_H #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_MACROREPEATEDSIDEEFFECTSCHECK_H -#include "../ClangTidy.h" +#include "../ClangTidyCheck.h" namespace clang { namespace tidy { @@ -21,7 +20,8 @@ class MacroRepeatedSideEffectsCheck : public ClangTidyCheck { public: MacroRepeatedSideEffectsCheck(StringRef Name, ClangTidyContext *Context) : ClangTidyCheck(Name, Context) {} - void registerPPCallbacks(CompilerInstance &Compiler) override; + void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP, + Preprocessor *ModuleExpanderPP) override; }; } // namespace bugprone |