clang-tools 22.0.0git
|
Identifies unimplemented private special member functions, and recommends using = delete for them. More...
#include <UseEqualsDeleteCheck.h>
Public Member Functions | |
UseEqualsDeleteCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
Identifies unimplemented private special member functions, and recommends using = delete for them.
Additionally, it recommends relocating any / deleted member function from the private to the public section.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-delete.html
Definition at line 22 of file UseEqualsDeleteCheck.h.
clang::tidy::modernize::UseEqualsDeleteCheck::UseEqualsDeleteCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 47 of file UseEqualsDeleteCheck.cpp.
|
override |
Definition at line 74 of file UseEqualsDeleteCheck.cpp.
References clang::tidy::modernize::DeletedNotPublic, and clang::tidy::modernize::SpecialFunction.
|
inlineoverride |
Definition at line 31 of file UseEqualsDeleteCheck.h.
|
inlineoverride |
Definition at line 25 of file UseEqualsDeleteCheck.h.
|
override |
Definition at line 56 of file UseEqualsDeleteCheck.cpp.
References clang::tidy::modernize::DeletedNotPublic, and clang::tidy::modernize::SpecialFunction.
|
override |
Definition at line 52 of file UseEqualsDeleteCheck.cpp.