Fariborz Jahanian wrote:
On Jul 27, 2009, at 3:33 PM, Daniel Dunbar wrote:

I think what Fariborz was asking for was to actually modify the AST
for main to return 0, change the type, etc.

No. I just wanted AST to carry the info. somehow, so clients do not
deduce this based on target language. An analogy being that
we put enough info. in the ASTs for synthesized ivars so clients can do this.

So would something like Eli's suggestion be sufficient --- i.e. just changing the triggering condition on my original patch to some sort of AST-hosted "has well-defined implicit return" predicate, which would currently just defer to isMain()? I've been experimenting with synthesizing return statements, and it feels like that would be a much more intrusive change for clients.

John.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to