/* SPDX-FileCopyrightText: 2023 Johnny Jazeix SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef CLAZY_NO_MODULE_INCLUDE_H #define CLAZY_NO_MODULE_INCLUDE_H #include "checkbase.h" #include #include /** * See README-no-module-include.md for more info. */ class NoModuleInclude : public CheckBase { public: explicit NoModuleInclude(const std::string &name, Options options); void VisitInclusionDirective(clang::SourceLocation HashLoc, const clang::Token &IncludeTok, clang::StringRef FileName, bool IsAngled, clang::CharSourceRange FilenameRange, clazy::OptionalFileEntryRef File, clang::StringRef SearchPath, clang::StringRef RelativePath, const clang::Module *SuggestedModule, bool ModuleImported, clang::SrcMgr::CharacteristicKind FileType) override; private: const std::vector m_modulesList; }; #endif