mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-26 18:58:34 -06:00
Enabled performance-inefficient-vector-operation check in clang-tidy
This commit is contained in:
@@ -19,7 +19,6 @@ modernize-*,\
|
||||
-modernize-use-using,\
|
||||
performance-*,\
|
||||
-performance-inefficient-string-concatenation,\
|
||||
-performance-inefficient-vector-operation,\
|
||||
readability-*,\
|
||||
-readability-function-size,\
|
||||
-readability-identifier-naming,\
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user