Sign in
rust
/
rust-lang
/
llvm-project
/
c39e100ad3cbb4c1b587224a6be2bb732c1d6bf4
/
.
/
clang-tools-extra
/
test
/
clang-tidy
/
checkers
/
Inputs
/
performance-unnecessary-value-param
/
header.h
blob: 94916755ddafeabd5f53aaa872453f8805ecf84b [
file
] [
log
] [
blame
]
// struct ABC is expensive to copy and should be
// passed as a const reference.
struct
ABC
{
ABC
(
const
ABC
&);
int
get
(
int
)
const
;
};
int
f1
(
int
n
,
ABC v1
,
ABC v2
);
// line 9
int
f1
(
int
n
,
ABC v1
);
// line 11
int
f2
(
int
n
,
ABC v2
);
// line 15