clang-tools 22.0.0git
clang::tidy::bugprone::IncorrectEnableIfCheck Class Reference

Detects incorrect usages of std::enable_if that don't name the nested / type type. More...

#include <IncorrectEnableIfCheck.h>

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

Public Member Functions

 IncorrectEnableIfCheck (StringRef Name, ClangTidyContext *Context)
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override
bool isLanguageVersionSupported (const LangOptions &LangOpts) const override

Detailed Description

Detects incorrect usages of std::enable_if that don't name the nested / type type.

For the user-facing documentation see:
https://clang.llvm.org/extra/clang-tidy/checks/bugprone/incorrect-enable-if.html 

Definition at line 21 of file IncorrectEnableIfCheck.h.

Constructor & Destructor Documentation

◆ IncorrectEnableIfCheck()

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

Definition at line 23 of file IncorrectEnableIfCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::bugprone::IncorrectEnableIfCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 43 of file IncorrectEnableIfCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::bugprone::IncorrectEnableIfCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 27 of file IncorrectEnableIfCheck.h.

◆ registerMatchers()

void clang::tidy::bugprone::IncorrectEnableIfCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 32 of file IncorrectEnableIfCheck.cpp.


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