clang-tools 22.0.0git
|
Checks for unused and missing includes. More...
#include <IncludeCleanerCheck.h>
Public Member Functions | |
IncludeCleanerCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
void | registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
Checks for unused and missing includes.
Generates findings only for the main file of a translation unit. Findings correspond to https://clangd.llvm.org/design/include-cleaner.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/misc/include-cleaner.html
Definition at line 33 of file IncludeCleanerCheck.h.
clang::tidy::misc::IncludeCleanerCheck::IncludeCleanerCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 56 of file IncludeCleanerCheck.cpp.
|
override |
Definition at line 121 of file IncludeCleanerCheck.cpp.
|
override |
Definition at line 87 of file IncludeCleanerCheck.cpp.
|
override |
Definition at line 92 of file IncludeCleanerCheck.cpp.
|
override |
Definition at line 96 of file IncludeCleanerCheck.cpp.
|
override |
Definition at line 79 of file IncludeCleanerCheck.cpp.
References clang::tidy::utils::options::serializeStringList().