Enabled performance-inefficient-vector-operation check in clang-tidy

This commit is contained in:
Jakub Kalinski
2019-04-02 22:04:02 +02:00
parent 81985b7c6c
commit c1d1027ac1
2 changed files with 1 additions and 1 deletions

View File

@@ -19,7 +19,6 @@ modernize-*,\
-modernize-use-using,\
performance-*,\
-performance-inefficient-string-concatenation,\
-performance-inefficient-vector-operation,\
readability-*,\
-readability-function-size,\
-readability-identifier-naming,\

View File

@@ -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));