[Qt-creator] PtrOperatorAST visitor
Marek Jasovsky
jasovsky.marek at gmail.com
Mon Feb 9 10:26:10 CET 2009
Hi
2009/2/9 Roberto Raggi <roberto.raggi at trolltech.com>
> Hi Marek,
>
> On Feb 9, 2009, at 9:47 AM, Marek Jasovsky wrote:
>
> > Hi Roberto
> >
> > I have done first part of ASTViewer but I had to add this visitor to
> > the code... as it was not included in visit(...) methods...
>
> There's no source code attached to your email so i don't know exactly
> what method you had to add. By the way, PtrOperatorAST is an abstract
> base node, it doesn't make any sense to have an overload for
> visit(PtrOperatorAST*) in ASTVisitor.. to handle ptr-operators you
> just have to reimplement the ASTVisitor::visit() methods for
> PointerToMemberAST, PointerAST, and ReferenceAST.
This I was not sure... and yes, you might be right, that you only have to
reimplement those 3.
does this mean, I only have to implement visit() methods for non-abstract
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
thanks
>
>
> ciao robe
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090209/8ddffe13/attachment.html
More information about the Qt-creator-old
mailing list