mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
clang-tidy: modernize-use-auto
Set the MinTypeNameLength option to an impossibly high value in order to limit the diagnostics to iterators. Leave new expressions and cast expressions for later.
This commit is contained in:
@@ -80,8 +80,7 @@ bool cmFunctionHelperCommand::operator()(
|
||||
|
||||
// define ARGV and ARGN
|
||||
std::string argvDef = cmJoin(expandedArgs, ";");
|
||||
std::vector<std::string>::const_iterator eit =
|
||||
expandedArgs.begin() + (this->Args.size() - 1);
|
||||
auto eit = expandedArgs.begin() + (this->Args.size() - 1);
|
||||
std::string argnDef = cmJoin(cmMakeRange(eit, expandedArgs.end()), ";");
|
||||
makefile.AddDefinition("ARGV", argvDef);
|
||||
makefile.MarkVariableAsUsed("ARGV");
|
||||
|
||||
Reference in New Issue
Block a user