tutorial examples for writing new Clang plugin actions

http://wiki.documentfoundation.org/Clang_plugins

Change-Id: Ieb4fc186490e81ab961c094ca0a7fcdabc0f348f
This commit is contained in:
Luboš Luňák
2013-02-02 22:59:17 +01:00
parent 18e615189d
commit 4fd910a096
9 changed files with 380 additions and 1 deletions

View File

@@ -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;
}