9#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_MOVECONSTANTARGUMENTCHECK_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_MOVECONSTANTARGUMENTCHECK_H
12#include "../ClangTidyCheck.h"
13#include "llvm/ADT/DenseSet.h"
29 "CheckTriviallyCopyableMove", true)),
30 CheckMoveToConstRef(
Options.get(
"CheckMoveToConstRef", true)) {}
32 return LangOpts.CPlusPlus;
36 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
39 const bool CheckTriviallyCopyableMove;
40 const bool CheckMoveToConstRef;
41 llvm::DenseSet<const CallExpr *> AlreadyCheckedMoves;
llvm::SmallString< 256U > Name
Base class for all clang-tidy checks.
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
llvm::StringMap< ClangTidyValue > OptionMap