[Qt-creator] parser ?error? + SymbolVisitor

Marek Jasovsky jasovsky.marek at gmail.com
Mon Mar 16 19:43:04 CET 2009


Hi

for this short one line code snippet, I get same AST as if I had no
parameters of the function.
void foo(int a, int b) { return 0; }

export (using your code ) as follows

class CPlusPlus::TranslationUnitAST
 class CPlusPlus::FunctionDefinitionAST
  class CPlusPlus::SimpleSpecifierAST
  class CPlusPlus::DeclaratorAST
   class CPlusPlus::DeclaratorIdAST
    class CPlusPlus::SimpleNameAST
   class CPlusPlus::FunctionDeclaratorAST
  class CPlusPlus::CompoundStatementAST
   class CPlusPlus::ReturnStatementAST
    class CPlusPlus::NumericLiteralAST

Thanks

Marek

btw. if I have Block as result from SymbolVisitor pass... how can I analyze
code which is found deeper than the Block?

Thanks a lot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090316/f741eccf/attachment.html 


More information about the Qt-creator-old mailing list