clang-tools 22.0.0git
|
Finds user-defined copy assignment operators which do not protect the code against self-assignment either by checking self-assignment explicitly or using the copy-and-swap or the copy-and-move method. More...
#include <UnhandledSelfAssignmentCheck.h>
Public Member Functions | |
UnhandledSelfAssignmentCheck (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 |
Finds user-defined copy assignment operators which do not protect the code against self-assignment either by checking self-assignment explicitly or using the copy-and-swap or the copy-and-move method.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/unhandled-self-assignment.html
Definition at line 22 of file UnhandledSelfAssignmentCheck.h.
clang::tidy::bugprone::UnhandledSelfAssignmentCheck::UnhandledSelfAssignmentCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 17 of file UnhandledSelfAssignmentCheck.cpp.
|
override |
Definition at line 124 of file UnhandledSelfAssignmentCheck.cpp.
|
inlineoverride |
Definition at line 26 of file UnhandledSelfAssignmentCheck.h.
|
override |
Definition at line 29 of file UnhandledSelfAssignmentCheck.cpp.
|
override |
Definition at line 23 of file UnhandledSelfAssignmentCheck.cpp.