clang-tools 22.0.0git
|
Find casts of calculation results to bigger type. More...
#include <MoveConstArgCheck.h>
Public Member Functions | |
MoveConstArgCheck (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 |
Find casts of calculation results to bigger type.
Typically from int to
The options are
Definition at line 25 of file MoveConstArgCheck.h.
|
inline |
Definition at line 27 of file MoveConstArgCheck.h.
|
override |
Definition at line 100 of file MoveConstArgCheck.cpp.
References clang::tidy::performance::isRValueReferenceParam(), and clang::tidy::performance::replaceCallWithArg().
|
inlineoverride |
Definition at line 31 of file MoveConstArgCheck.h.
|
override |
Definition at line 41 of file MoveConstArgCheck.cpp.
|
override |
Definition at line 36 of file MoveConstArgCheck.cpp.