This is the mail archive of the 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]

PATCH to cp/ir.texi

This bit documents some tree nodes used to represent various entities
in g++.


-- Gaby
CodeSourcery, LLC

2000-09-07  Gabriel Dos Reis  <>

	* ir.texi: Document type nodes.

Index: ir.texi
RCS file: /cvs/gcc/egcs/gcc/cp/ir.texi,v
retrieving revision 1.33
diff -p -r1.33 ir.texi
*** ir.texi	2000/08/26 18:26:52	1.33
--- ir.texi	2000/09/07 07:06:57
*************** The elements are indexed from zero.
*** 319,329 ****
--- 319,334 ----
  @tindex ARRAY_TYPE
  @tindex RECORD_TYPE
  @tindex UNION_TYPE
+ @tindex UNKNOWN_TYPE
+ @tindex OFFSET_TYPE
+ @tindex TYPEOF_TYPE
  @findex CP_TYPE_QUALS
  @cindex qualified type
  @findex TYPE_SIZE
  @findex TYPE_ALIGN
*************** The elements are indexed from zero.
*** 331,336 ****
--- 336,347 ----
  @findex TYPE_ARG_TYPES
  @findex TYPE_PTRMEM_P
+ @findex TREE_TYPE
+ @findex TYPE_CONTEXT
+ @findex TYPE_NAME
+ @findex TYPE_FIELDS
  All C++ types have corresponding tree nodes.  However, you should not
  assume that there is exactly one tree node corresponding to each C++
*************** this type is a pointer-to-member type.  
*** 517,522 ****
--- 528,559 ----
  pointed to by the pointer-to-member function.  If
  @code{TYPE_PTRMEMFUNC_P} does not hold, this type is a class type.  For
  more information, see @pxref{Classes}.
+ This node is used to represent a type the knowledge of which is
+ unsufficiant for a sound processing.
+ This node is used to represent a data member; for example a
+ pointer-to-data-member is represented by a @code{POINTER_TYPE} whose
+ @code{TREE_TYPE} is an @code{OFFSET_TYPE}.  For a data member @code{X::m}
+ the @code{TYPE_OFFSET_BASETYPE} is @code{X} and the @code{TREE_TYPE} is
+ the type of @code{m}.
+ Used to represent a construct of the form @code{typename T::A}.  The
+ @code{TYPE_CONTEXT} is @code{T}; the @code{TYPE_NAME} is an
+ @code{IDENTIFIER_NODE} for @code{A}. If the type is specified via a
+ template-id, then @code{TYPENAME_TYPE_FULLNAME} yields a
+ @code{TEMPLATE_ID_EXPR}.  The @code{TREE_TYPE} is non-@code{NULL} if the
+ node is implicitly generated in support for the implicit typename
+ extension; in which case the @code{TREE_TYPE} is a type node for the
+ base-class.
+ Used to represent the @code{__typeof__} extension.  The
+ @code{TYPE_FIELDS} is the expression the type of which is being
+ represented. 
  @item UNION_TYPE
  Used to represent @code{union} types.  For more information, @pxref{Classes}.

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