summaryrefslogtreecommitdiffstats
path: root/Utilities/ClangTidyModule/Tests/cmake-use-bespoke-enum-class.cxx
blob: 2913e6a2d6ab825404f1042fe8461ed3c99b2113 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Correction needed

bool function1(bool i)
{
  return true;
}

int function2(bool i)
{
  return 0;
}

char function3(bool i)
{
  return 'a';
}

void function4(bool i)
{
}

float function5(bool i)
{
  return 1.0;
}

double function6(bool i)
{
  return 0;
}

// No correction needed
bool global;

bool function7(int i)
{
  bool l;
  return true;
}

int function8(int i)
{
  return i;
}

char function9(char i)
{
  return i;
}

void function10()
{
}

float function11(float i)
{
  return i;
}

double function12(double i)
{
  return i;
}