From d25a5a7ec91bfa072d3cf1a302830a54506c88c0 Mon Sep 17 00:00:00 2001 From: Regina Pfeifer Date: Wed, 4 Sep 2019 22:17:22 +0200 Subject: 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. --- Source/cmExtraCodeBlocksGenerator.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/cmExtraCodeBlocksGenerator.cxx') diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx index 5a9c54c018..5a5d959104 100644 --- a/Source/cmExtraCodeBlocksGenerator.cxx +++ b/Source/cmExtraCodeBlocksGenerator.cxx @@ -573,8 +573,7 @@ void cmExtraCodeBlocksGenerator::AppendTarget( cmAppend(allIncludeDirs, cmExpandedList(systemIncludeDirs)); } - std::vector::const_iterator end = - cmRemoveDuplicates(allIncludeDirs); + auto end = cmRemoveDuplicates(allIncludeDirs); for (std::string const& str : cmMakeRange(allIncludeDirs.cbegin(), end)) { xml.StartElement("Add"); -- cgit v1.2.1