summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/performance-inefficient-vector-operation.cpp
blob: 4f0e143aa2916397f3f058001e81f4b25a49131b (plain)
1
2
3
4
5
6
7
8
9
10
#include "structures.h"

void foo()
{
  std::vector<int> v;
  int n = 100;
  for (int i = 0; i < n; ++i) {
    v.push_back(n);
  }
}