clang-tools 22.0.0git
clang::tidy::llvm_libc::RestrictSystemLibcHeadersCheck Class Reference

Warns of accidental inclusions of system libc headers that aren't compiler provided. More...

#include <RestrictSystemLibcHeadersCheck.h>

Inheritance diagram for clang::tidy::llvm_libc::RestrictSystemLibcHeadersCheck:
[legend]

Public Member Functions

 RestrictSystemLibcHeadersCheck (StringRef Name, ClangTidyContext *Context)
void registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override
Public Member Functions inherited from clang::tidy::portability::RestrictSystemIncludesCheck
 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)

Detailed Description

Warns of accidental inclusions of system libc headers that aren't compiler provided.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/llvmlibc/restrict-system-libc-headers.html

Definition at line 22 of file RestrictSystemLibcHeadersCheck.h.

Constructor & Destructor Documentation

◆ RestrictSystemLibcHeadersCheck()

clang::tidy::llvm_libc::RestrictSystemLibcHeadersCheck::RestrictSystemLibcHeadersCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Member Function Documentation

◆ registerPPCallbacks()

void clang::tidy::llvm_libc::RestrictSystemLibcHeadersCheck::registerPPCallbacks ( const SourceManager & SM,
Preprocessor * PP,
Preprocessor * ModuleExpanderPP )
override

Definition at line 58 of file RestrictSystemLibcHeadersCheck.cpp.


The documentation for this class was generated from the following files: