diff options
Diffstat (limited to 'gcc/cp/cp-tree.def')
-rw-r--r-- | gcc/cp/cp-tree.def | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/gcc/cp/cp-tree.def b/gcc/cp/cp-tree.def index 20a0117c160..2fdacfd3965 100644 --- a/gcc/cp/cp-tree.def +++ b/gcc/cp/cp-tree.def @@ -1,7 +1,7 @@ /* This file contains the definitions and documentation for the additional tree codes used in the GNU C++ compiler (see tree.def for the standard codes). - Copyright (C) 1987, 1988, 1990, 1993 Free Software Foundation, Inc. + Copyright (C) 1987, 1988, 1990, 1993, 1997, 1998 Free Software Foundation, Inc. Hacked by Michael Tiemann (tiemann@cygnus.com) This file is part of GNU CC. @@ -143,9 +143,16 @@ DEFTREECODE (TEMPLATE_TYPE_PARM, "template_type_parm", 't', 0) The TYPE_FIELDS value will be a TEMPLATE_PARM_INDEX. */ DEFTREECODE (TEMPLATE_TEMPLATE_PARM, "template_template_parm", 't', 0) -/* A type designated by 'typename T::t'. */ +/* A type designated by `typename T::t'. TYPE_CONTEXT is `T', + TYPE_NAME is a TYPE_DECL for `t'. If TREE_TYPE is present, this + type was generated by the implicit typename extension, and the + TREE_TYPE is a _TYPE from a baseclass of `T'. */ DEFTREECODE (TYPENAME_TYPE, "typename_type", 't', 0) +/* A type designated by `__typeof (expr)'. TYPE_FIELDS is the + expression in question. */ +DEFTREECODE (TYPEOF_TYPE, "typeof_type", 't', 0) + /* A thunk is a stub function. Thunks are used to implement multiple inheritance: @@ -171,9 +178,9 @@ DEFTREECODE (DEFAULT_ARG, "default_arg", 'c', 2) the template may be an IDENTIFIER_NODE. */ DEFTREECODE (TEMPLATE_ID_EXPR, "template_id_expr", 'e', 2) -/* An association between namespace and entity. Parameters are the - scope and the (non-type) value. - TREE_TYPE indicates the type bound to the name. */ +/* An association between name and entity. Parameters are the scope + and the (non-type) value. TREE_TYPE indicates the type bound to + the name. */ DEFTREECODE (CPLUS_BINDING, "binding", 'x', 2) /* A list-like node for chaining overloading candidates. TREE_TYPE is |