clang-tools 22.0.0git
|
Checks for allowed includes and suggests removal of any others. More...
#include <RestrictSystemIncludesCheck.h>
Public Member Functions | |
RestrictSystemIncludesCheck (StringRef Name, ClangTidyContext *Context, std::string DefaultAllowedIncludes="*") | |
void | registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
bool | contains (StringRef FileName) |
Checks for allowed includes and suggests removal of any others.
If no includes are specified, the check will exit without issuing any warnings.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/portability/restrict-system-includes.html
Definition at line 23 of file RestrictSystemIncludesCheck.h.
|
inline |
Definition at line 25 of file RestrictSystemIncludesCheck.h.
Referenced by clang::tidy::llvm_libc::RestrictSystemLibcHeadersCheck::RestrictSystemLibcHeadersCheck().
|
inline |
Definition at line 34 of file RestrictSystemIncludesCheck.h.
|
override |
Definition at line 65 of file RestrictSystemIncludesCheck.cpp.
|
override |
Definition at line 71 of file RestrictSystemIncludesCheck.cpp.