summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Kalinski <jakub.kalinski1993@gmail.com>2019-04-02 22:04:02 +0200
committerJakub Kalinski <jakub.kalinski1993@gmail.com>2019-04-02 22:17:24 +0200
commitc1d1027ac1bf922972ebb121f369ff59be27103d (patch)
tree05595643ecf76259e853c299bd6266a599065657
parent81985b7c6c9a15ca7a59c54979d8371c783fb581 (diff)
downloadcmake-c1d1027ac1bf922972ebb121f369ff59be27103d.tar.gz
Enabled performance-inefficient-vector-operation check in clang-tidy
-rw-r--r--.clang-tidy1
-rw-r--r--Source/cmSourceGroupCommand.cxx1
2 files changed, 1 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 520b1a9e39..f51c8fc673 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 34ded38906..2bc4c3955c 100644
--- a/Source/cmSourceGroupCommand.cxx
+++ b/Source/cmSourceGroupCommand.cxx
@@ -77,6 +77,7 @@ std::vector<std::string> prepareFilesPathsForTree(
const std::string& currentSourceDir)
{
std::vector<std::string> prepared;
+ prepared.reserve(filesPaths.size());
for (auto const& filePath : filesPaths) {
prepared.push_back(prepareFilePathForTree(filePath, currentSourceDir));