clang-tools 22.0.0git
clang::tidy::readability::RedundantPreprocessorCheck Class Reference

This check flags redundant preprocessor directives: nested directives with the same condition. More...

#include <RedundantPreprocessorCheck.h>

Inheritance diagram for clang::tidy::readability::RedundantPreprocessorCheck:
[legend]

Public Member Functions

 RedundantPreprocessorCheck (StringRef Name, ClangTidyContext *Context)
void registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override

Detailed Description

This check flags redundant preprocessor directives: nested directives with the same condition.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-preprocessor.html

Definition at line 21 of file RedundantPreprocessorCheck.h.

Constructor & Destructor Documentation

◆ RedundantPreprocessorCheck()

clang::tidy::readability::RedundantPreprocessorCheck::RedundantPreprocessorCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 23 of file RedundantPreprocessorCheck.h.

Member Function Documentation

◆ registerPPCallbacks()

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

Definition at line 99 of file RedundantPreprocessorCheck.cpp.


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