clang-tools 22.0.0git
|
Finds assignments to the copied object and its direct or indirect members in copy constructors and copy assignment operators. More...
#include <MutatingCopyCheck.h>
Public Member Functions | |
MutatingCopyCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Finds assignments to the copied object and its direct or indirect members in copy constructors and copy assignment operators.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cert/oop58-cpp.html
Definition at line 21 of file MutatingCopyCheck.h.
|
inline |
Definition at line 23 of file MutatingCopyCheck.h.
|
override |
Definition at line 63 of file MutatingCopyCheck.cpp.
References clang::tidy::cert::MutatingCallName, and clang::tidy::cert::MutatingOperatorName.
|
inlineoverride |
Definition at line 25 of file MutatingCopyCheck.h.
|
override |
Definition at line 21 of file MutatingCopyCheck.cpp.
References clang::tidy::cert::MutatingCallName, clang::tidy::cert::MutatingOperatorName, and clang::tidy::cert::SourceDeclName.