[cfe-dev] Enums for Parse, Sema & AST

Douglas Gregor dgregor at apple.com
Sat Mar 5 23:13:06 PST 2011


On Mar 5, 2011, at 2:00 PM, Sebastian Redl wrote:

> Hi,
> 
> Layering question: I've got a simple enum ExceptionSpecificationType. It's used by the parser, sema, and AST. Where do I define it?
> 1) Basic
> 2) Duplicate it in Sema/DeclSpec.h and AST/Type.h
> 
> #1 looks cleaner, but also more invasive.

Let's go with #1. The Sema/AST duplication really only makes sense when we actually need different temporary vs. final representations.

	- Doug



More information about the cfe-dev mailing list