diff options
Diffstat (limited to 'compilerplugins/clang/store/tutorial/tutorial2_example.cxx')
-rw-r--r-- | compilerplugins/clang/store/tutorial/tutorial2_example.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/compilerplugins/clang/store/tutorial/tutorial2_example.cxx b/compilerplugins/clang/store/tutorial/tutorial2_example.cxx new file mode 100644 index 000000000000..d3c14ab7c13c --- /dev/null +++ b/compilerplugins/clang/store/tutorial/tutorial2_example.cxx @@ -0,0 +1,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; + } |