Sign in
llvm
/
llvm-project
/
clang-tools-extra
/
4555c82921bccae87fe430a3a13dfbac85d50abc
/
.
/
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