[Qt-creator] PtrOperatorAST visitor

Roberto Raggi roberto.raggi at trolltech.com
Mon Feb 9 10:37:10 CET 2009


Hi,

On Feb 9, 2009, at 10:26 AM, Marek Jasovsky wrote:
> does this mean, I only have to implement visit() methods for non- 
> abstract nodes?

The class ASTVisitor does not have visit() method for abstract nodes,  
so you are kind of forced to reimplement visit() only for non-abstract  
AST nodes :-)

>
>
> question 2: did you ever implement tree model? I had to implement  
> this for all 100 classes found in ast.h/.cpp (so far 39 done)
> just wanted to ask, if there is any better idea, than my  
> implementation so far


Look at src/libs/cplusplus/OverviewModel.{h,cpp}. OverviewModel is a  
simple model I wrote to show the declared C++ symbols.

ciao robe




More information about the Qt-creator-old mailing list