Sign in
rust
/
rust-lang
/
llvm-project
/
35c537490f7804c0a68fcabcd20ecf96357b74ff
/
.
/
clang-tools-extra
/
test
/
clang-tidy
/
Inputs
/
performance-unnecessary-value-param
/
header.h
blob: 3f55c79a26842a79752b96ab2a4999a1e280efd6 [
file
] [
log
] [
blame
]
// struct ABC is expensive to copy and should be
// passed as a const referece.
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