From c1d1027ac1bf922972ebb121f369ff59be27103d Mon Sep 17 00:00:00 2001 From: Jakub Kalinski Date: Tue, 2 Apr 2019 22:04:02 +0200 Subject: Enabled performance-inefficient-vector-operation check in clang-tidy --- .clang-tidy | 1 - Source/cmSourceGroupCommand.cxx | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index 520b1a9..f51c8fc 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -19,7 +19,6 @@ modernize-*,\ -modernize-use-using,\ performance-*,\ -performance-inefficient-string-concatenation,\ --performance-inefficient-vector-operation,\ readability-*,\ -readability-function-size,\ -readability-identifier-naming,\ diff --git a/Source/cmSourceGroupCommand.cxx b/Source/cmSourceGroupCommand.cxx index 34ded38..2bc4c39 100644 --- a/Source/cmSourceGroupCommand.cxx +++ b/Source/cmSourceGroupCommand.cxx @@ -77,6 +77,7 @@ std::vector prepareFilesPathsForTree( const std::string& currentSourceDir) { std::vector prepared; + prepared.reserve(filesPaths.size()); for (auto const& filePath : filesPaths) { prepared.push_back(prepareFilePathForTree(filePath, currentSourceDir)); -- cgit v0.12