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