clang-tools 22.0.0git
|
Replaces groups of related macros with an unscoped anonymous enum. More...
#include <MacroToEnumCheck.h>
Public Member Functions | |
MacroToEnumCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Replaces groups of related macros with an unscoped anonymous enum.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/modernize/macro-to-enum.html
Definition at line 22 of file MacroToEnumCheck.h.
|
inline |
Definition at line 24 of file MacroToEnumCheck.h.
|
override |
Definition at line 534 of file MacroToEnumCheck.cpp.
References clang::tidy::modernize::empty(), and clang::tidy::modernize::isValid().
|
override |
Definition at line 520 of file MacroToEnumCheck.cpp.
|
override |
Definition at line 511 of file MacroToEnumCheck.cpp.