tutorial examples for writing new Clang plugin actions
http://wiki.documentfoundation.org/Clang_plugins Change-Id: Ieb4fc186490e81ab961c094ca0a7fcdabc0f348f
This commit is contained in:
18
compilerplugins/clang/store/tutorial/tutorial1_example.cxx
Normal file
18
compilerplugins/clang/store/tutorial/tutorial1_example.cxx
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user