Clang Project

clang_source_code/test/Tooling/Inputs/clang-diff-basic-src.cpp
1namespace src {
2
3void foo() {
4  int x = 321;
5}
6
7void main() { foo(); };
8
9const char *a = "foo";
10
11typedef unsigned int nat;
12
13int p = 1 * 2 * 3 * 4;
14int squared = p * p;
15
16class X {
17  const char *foo(int i) {
18    if (i == 0)
19      return "foo";
20    return 0;
21  }
22
23public:
24  X(){};
25
26  int id(int i) { return i; }
27};
28}
29
30void m() { int x = 0 + 0 + 0; }
31int um = 1 * 2 + 3;
32
33void f1() {{ (void) __func__;;; }}
34