|
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 <CopyConstructorMutatesArgumentCheck.h>
Public Member Functions | |
| CopyConstructorMutatesArgumentCheck (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/bugprone/copy-constructor-mutates-argument.html
Definition at line 21 of file CopyConstructorMutatesArgumentCheck.h.
|
inline |
Definition at line 23 of file CopyConstructorMutatesArgumentCheck.h.
|
override |
Definition at line 64 of file CopyConstructorMutatesArgumentCheck.cpp.
References clang::tidy::bugprone::MutatingCallName, and clang::tidy::bugprone::MutatingOperatorName.
|
inlineoverride |
Definition at line 25 of file CopyConstructorMutatesArgumentCheck.h.
|
override |
Definition at line 21 of file CopyConstructorMutatesArgumentCheck.cpp.
References clang::tidy::bugprone::MutatingCallName, clang::tidy::bugprone::MutatingOperatorName, and clang::tidy::bugprone::SourceDeclName.