clang-tools 22.0.0git
|
Finds uses of #if that can be simplified to #ifdef or #ifndef / and, since C23 and C++23, uses of #elif that can be simplified to / #elifdef or #elifndef. More...
#include <UseConcisePreprocessorDirectivesCheck.h>
Public Member Functions | |
void | registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
Finds uses of #if that can be simplified to #ifdef or #ifndef / and, since C23 and C++23, uses of #elif that can be simplified to / #elifdef or #elifndef.
User-facing documentation: https://clang.llvm.org/extra/clang-tidy/checks/readability/use-concise-preprocessor-directives.html
Definition at line 22 of file UseConcisePreprocessorDirectivesCheck.h.
|
inlineoverride |
Definition at line 27 of file UseConcisePreprocessorDirectivesCheck.h.
|
override |
Definition at line 105 of file UseConcisePreprocessorDirectivesCheck.cpp.