Browse Source

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

pull/329/head
Jakub Kalinski 6 years ago
parent
commit
c1d1027ac1
  1. 1
      .clang-tidy
  2. 1
      Source/cmSourceGroupCommand.cxx

1
.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,\

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

Loading…
Cancel
Save