summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/store/tutorial/tutorial2_example.cxx
blob: d3c14ab7c13c47c6b0ab0e87ab02d8fae44e9474 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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

bool g()
    {
    if( 1 == 2 )
        return false;
    if( 1 == 2 )
        {
        return false;
        }
    if( true )
        return false;
    }