clang-tools 22.0.0git
|
Warns when an rvalue reference function parameter is never moved within the function body. More...
#include <RvalueReferenceParamNotMovedCheck.h>
Public Member Functions | |
RvalueReferenceParamNotMovedCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
Warns when an rvalue reference function parameter is never moved within the function body.
This check implements CppCoreGuideline F.18.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/rvalue-reference-param-not-moved.html
Definition at line 21 of file RvalueReferenceParamNotMovedCheck.h.
clang::tidy::cppcoreguidelines::RvalueReferenceParamNotMovedCheck::RvalueReferenceParamNotMovedCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 119 of file RvalueReferenceParamNotMovedCheck.cpp.
|
override |
Definition at line 79 of file RvalueReferenceParamNotMovedCheck.cpp.
|
inlineoverride |
Definition at line 26 of file RvalueReferenceParamNotMovedCheck.h.
|
override |
Definition at line 39 of file RvalueReferenceParamNotMovedCheck.cpp.
|
override |
Definition at line 128 of file RvalueReferenceParamNotMovedCheck.cpp.