|
clang-tools 23.0.0git
|
Converts standard library type traits of the form traits<...>::type and traits<...>::value into traits_t<...> and traits_v<...> respectively. More...
#include <TypeTraitsCheck.h>
Public Member Functions | |
| TypeTraitsCheck (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 |
| std::optional< TraversalKind > | getCheckTraversalKind () const override |
| void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
Converts standard library type traits of the form traits<...>::type and traits<...>::value into traits_t<...> and traits_v<...> respectively.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/modernize/type-traits.html
Definition at line 21 of file TypeTraitsCheck.h.
| clang::tidy::modernize::TypeTraitsCheck::TypeTraitsCheck | ( | StringRef | Name, |
| ClangTidyContext * | Context ) |
Definition at line 219 of file TypeTraitsCheck.cpp.
|
override |
Definition at line 223 of file TypeTraitsCheck.cpp.
References clang::tidy::modernize::Bind, clang::tidy::modernize::checkTemplatedDecl(), clang::tidy::modernize::isNamedDeclInStdTraitsSet(), clang::tidy::modernize::TypeTraits, and clang::tidy::modernize::ValueTraits.
|
inlineoverride |
Definition at line 29 of file TypeTraitsCheck.h.
|
inlineoverride |
Definition at line 26 of file TypeTraitsCheck.h.
|
override |
Definition at line 190 of file TypeTraitsCheck.cpp.
References clang::tidy::modernize::Bind.
|
override |
Definition at line 313 of file TypeTraitsCheck.cpp.