Apply most suggestions of clang-tidy's performance-unnecessary-value-param
Avoids unnecessary copies. All changes audited & pass tests with asan. No functional change intended. llvm-svn: 272190
This commit is contained in:
@@ -72,7 +72,7 @@ public:
|
||||
|
||||
int run(Command Cmd, int argc, const char **argv);
|
||||
|
||||
typedef std::function<int(int, const char **)> CommandLineParserType;
|
||||
typedef llvm::function_ref<int(int, const char **)> CommandLineParserType;
|
||||
|
||||
int show(int argc, const char **argv,
|
||||
CommandLineParserType commandLineParser);
|
||||
|
||||
Reference in New Issue
Block a user