summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-04-08 11:42:59 +0000
committerKitware Robot <kwrobot@kitware.com>2019-04-08 07:44:10 -0400
commit99ce35ab9cbdac4a7cc626590f5e86c36ae29070 (patch)
tree147042f0ee85c0d94f60a8dc94c7420d48776a7b
parent658efb4c1ab309646f0a29f806315f805de477a4 (diff)
parentc1d1027ac1bf922972ebb121f369ff59be27103d (diff)
downloadcmake-99ce35ab9cbdac4a7cc626590f5e86c36ae29070.tar.gz
Merge topic 'tidy-fixes'
c1d1027ac1 Enabled performance-inefficient-vector-operation check in clang-tidy Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3185
-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 b87ca4b110..bfcb67ca7f 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -18,7 +18,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));