[cfe-dev] ASTVisitor different visit order

Douglas Gregor dgregor at apple.com
Fri Nov 13 14:00:31 PST 2009


On Nov 9, 2009, at 4:36 PM, Kevin Cathey wrote:

> I have a subclass of ASTVisitor, and on runs of the same file, it  
> visits the statements, declarations, etc. in a different order. Why  
> would this be? Can I ever rely on the order of the visitor?

I would have expected ASTVisitor to always visit entities in the same  
order (the order in which they are processed). Can you give a specific  
example where you are seeing a difference?

	- Doug



More information about the cfe-dev mailing list