This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Emit DW_AT_enum_class attribute for C++0x scoped enums


On 04/17/2010 02:40 AM, Jakub Jelinek wrote:
I've used ENUM_CLASS_P for the bit macro, because DW_AT_enum_class
is the DWARF 4 attribute name and because SCOPED_ENUM_P is already used
as macro in cp-tree.h.  I initially thought about moving the 3
macros (SCOPED_ENUM_P, UNSCOPED_ENUM_P and SET_SCOPED_ENUM_P) all to
tree.h, but I believe e.g. the large, clearly C++ specific, comments
probably don't belong to generic tree.h.  The bit macro
in tree.h probably could be ENUM_IS_SCOPED_P or something similar.

Let's go with ENUM_IS_SCOPED. It seems redundant to have both _IS_ and _P.


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]