clang-tools 24.0.0git
clang::tidy::bugprone::MacroConditionCheck Class Reference

Warns about inconsistent macro usage in preprocessor conditions. More...

#include <MacroConditionCheck.h>

Inheritance diagram for clang::tidy::bugprone::MacroConditionCheck:
[legend]

Public Member Functions

 MacroConditionCheck (StringRef Name, ClangTidyContext *Context)
void registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override
void storeOptions (ClangTidyOptions::OptionMap &Opts) override

Detailed Description

Warns about inconsistent macro usage in preprocessor conditions.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone-macro-condition.html

Definition at line 20 of file MacroConditionCheck.h.

Constructor & Destructor Documentation

◆ MacroConditionCheck()

clang::tidy::bugprone::MacroConditionCheck::MacroConditionCheck ( StringRef Name,
ClangTidyContext * Context )

Definition at line 675 of file MacroConditionCheck.cpp.

Member Function Documentation

◆ registerPPCallbacks()

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

Definition at line 686 of file MacroConditionCheck.cpp.

References clang::tidy::bugprone::PP.

◆ storeOptions()

void clang::tidy::bugprone::MacroConditionCheck::storeOptions ( ClangTidyOptions::OptionMap & Opts)
override

Definition at line 681 of file MacroConditionCheck.cpp.


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