summaryrefslogtreecommitdiffstats
path: root/test/clang-tidy/Inputs/performance-unnecessary-value-param/header-fixed.h
blob: f3e9e7241d254f420c9afe4776f8955dd9ab2cfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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,              const ABC& v1,   const ABC& v2); // line 9

int f1(int n, ABC v1); // line 11



int f2(        int n,       const ABC& v2); // line 15