d0dfe8aac8700d6070afe000cbae4e990a14b88c
[gcc.git] / gcc / cp / decl.h
1 /* Variables and structures for declaration processing.
2 Copyright (C) 1993 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20 /* In grokdeclarator, distinguish syntactic contexts of declarators. */
21 enum decl_context
22 { NORMAL, /* Ordinary declaration */
23 FUNCDEF, /* Function definition */
24 PARM, /* Declaration of parm before function body */
25 CATCHPARM, /* Declaration of catch parm */
26 FIELD, /* Declaration inside struct or union */
27 BITFIELD, /* Likewise but with specified width */
28 TYPENAME, /* Typename (inside cast or sizeof) */
29 MEMFUNCDEF /* Member function definition */
30 };
31
32 /* C++: Keep these around to reduce calls to `get_identifier'.
33 Identifiers for `this' in member functions and the auto-delete
34 parameter for destructors. */
35 extern tree this_identifier, in_charge_identifier;
36
37 /* Parsing a function declarator leaves a list of parameter names
38 or a chain or parameter decls here. */
39 extern tree last_function_parms;
40
41 /* A list of static class variables. This is needed, because a
42 static class variable can be declared inside the class without
43 an initializer, and then initialized, staticly, outside the class. */
44 extern tree pending_statics;
45
46 /* A list of objects which have constructors or destructors
47 which reside in the global scope. The decl is stored in
48 the TREE_VALUE slot and the initializer is stored
49 in the TREE_PURPOSE slot. */
50 extern tree static_aggregates;
51
52 #ifdef DEBUG_CP_BINDING_LEVELS
53 /* Purely for debugging purposes. */
54 extern int debug_bindings_indentation;
55 #endif