http://wiki.documentfoundation.org/Clang_plugins Change-Id: Ieb4fc186490e81ab961c094ca0a7fcdabc0f348f
16 lines
329 B
C++
16 lines
329 B
C++
// 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;
|
|
}
|