clang-tools 22.0.0git
|
The check warns if an object is used after it has been moved, without an intervening reinitialization. More...
#include <UseAfterMoveCheck.h>
Public Member Functions | |
UseAfterMoveCheck (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 |
The check warns if an object is used after it has been moved, without an intervening reinitialization.
For details, see the user-facing documentation: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/use-after-move.html
Definition at line 21 of file UseAfterMoveCheck.h.
|
inline |
Definition at line 23 of file UseAfterMoveCheck.h.
|
override |
Definition at line 480 of file UseAfterMoveCheck.cpp.
References check(), clang::tidy::bugprone::determineMoveType(), and clang::tidy::bugprone::emitDiagnostic().
Referenced by check().
|
inlineoverride |
Definition at line 25 of file UseAfterMoveCheck.h.
|
override |
Definition at line 434 of file UseAfterMoveCheck.cpp.
References clang::tidy::bugprone::inDecltypeOrTemplateArg(), and registerMatchers().
Referenced by registerMatchers().