clang-tools 22.0.0git
|
Finds code blocks that are constantly enabled or disabled in preprocessor directives by analyzing #if conditions, such as #if 0 and #if 1, etc. More...
#include <AvoidUnconditionalPreprocessorIfCheck.h>
Public Member Functions | |
AvoidUnconditionalPreprocessorIfCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override |
Finds code blocks that are constantly enabled or disabled in preprocessor directives by analyzing #if conditions, such as #if 0 and #if 1, etc.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/avoid-unconditional-preprocessor-if.html
Definition at line 21 of file AvoidUnconditionalPreprocessorIfCheck.h.
|
inline |
Definition at line 23 of file AvoidUnconditionalPreprocessorIfCheck.h.
|
override |
Definition at line 98 of file AvoidUnconditionalPreprocessorIfCheck.cpp.