repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bug 1879449 [wpt PR 44489] - [wptrunner] Add `infrastructure/expected-fail/` test...
[gecko.git]
/
tools
/
clang-tidy
/
test
/
performance-inefficient-vector-operation.cpp
blob
4f0e143aa2916397f3f058001e81f4b25a49131b
1
#include
"structures.h"
2
3
void
foo
()
4
{
5
std
::
vector
<
int
>
v
;
6
int
n
=
100
;
7
for
(
int
i
=
0
;
i
<
n
; ++
i
) {
8
v
.
push_back
(
n
);
9
}
10
}