summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/store/tutorial/tutorial1_example.cxx
blob: ca4c768fdd500838c7c4f1d60d29d8970d9e4891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// This is just an example file to see what AST looks like for return statements.
// To the the AST, run :
// clang++ -fsyntax-only -Xclang -ast-dump tutorial1_example.cxx

void f()
    {
    return;
    }

bool g()
    {
    return false;
    }

bool h()
    {
    return 3 > 2;
    }