diff options
author | Brad King <brad.king@kitware.com> | 2019-04-08 11:42:59 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-04-08 11:44:10 (GMT) |
commit | 99ce35ab9cbdac4a7cc626590f5e86c36ae29070 (patch) | |
tree | 147042f0ee85c0d94f60a8dc94c7420d48776a7b | |
parent | 658efb4c1ab309646f0a29f806315f805de477a4 (diff) | |
parent | c1d1027ac1bf922972ebb121f369ff59be27103d (diff) | |
download | CMake-99ce35ab9cbdac4a7cc626590f5e86c36ae29070.zip CMake-99ce35ab9cbdac4a7cc626590f5e86c36ae29070.tar.gz CMake-99ce35ab9cbdac4a7cc626590f5e86c36ae29070.tar.bz2 |
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-tidy | 1 | ||||
-rw-r--r-- | Source/cmSourceGroupCommand.cxx | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy index b87ca4b..bfcb67c 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 34ded38..2bc4c39 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)); |