|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
funcNode Class ReferenceFunction type node.
More...
|
Garbage collection. | |
bool | mark |
node_list | nodes |
map< Node *, bool > | deleted_nodes |
Public Types | |
enum | Type_qualifiers { NONE = 0x0, CONST = 0x1, VOLATILE = 0x2, INLINE = 0x4, COMPATIBLE = 0x3 } |
Type qualifiers. More... | |
Public Member Functions | |
funcNode (Type_qualifiers tq, decl_list *args, typeNode *returns, const Coord coord=Coord::Unknown) | |
Create a new function type. | |
virtual | ~funcNode () |
Destroy a funcNode. | |
bool | qualified_equal_to (typeNode *node2, bool strict_toplevel, bool strict_recursive) |
Virtual type comparison routine. | |
bool | is_void_args () |
Is void argument list. | |
bool | check_conversions () |
Check conversions. | |
bool | is_compatible_with (funcNode *nfunc) |
Compare two functions for compatibility. | |
void | add_parameter_types (decl_list *types) |
Add parameter types. | |
virtual Node * | clone () const |
Clone the input node. | |
virtual void | output_type (output_context &ct, Node *par, Assoc context, Type_qualifiers q) |
Output a type. | |
typeNode * | unwind_tdefs (Type_qualifiers &the_tq) |
Unwind typedefs. | |
typeNode * | no_tdef_type () |
typeNode * | follow_tdefs () |
Follow typedefs. | |
virtual typeNode * | usual_unary_conversion_type () |
Usual unary conversion type. | |
virtual typeNode * | base_type (bool TdefIndir) const |
Return the base data type of a node. | |
typeNode * | deep_base_type () |
virtual void | dataflow (FlowVal *v, FlowProblem &fp) |
Run the dataflow analyzer. | |
virtual void | output (output_context &ct, Node *par) |
Generate C code. | |
typeNode * | datatype () const |
Call base_type() with the argument true. | |
typeNode * | datatype_superior () const |
Call base_type() with the argument false. | |
Accessors | |
Methods to get and set fields in the class. | |
decl_list & | args () |
const decl_list & | args () const |
typeNode * | returns () const |
void | returns (typeNode *returns) |
bool | is_knr () const |
void | is_knr (bool v) |
Type predicates | |
virtual bool | is_derived () const |
virtual bool | is_pointer () const |
AST Traversal | |
virtual void | visit (Visitor *the_visitor) |
Dispatch a Visitor. | |
virtual void | walk (Walker &the_walker) |
Dispatch a Walker. | |
virtual Node * | change (Changer &the_changer, bool redispatch=false) |
Dispatch a Changer. | |
Accessors | |
Methods to get and set fields in the class. | |
string | type_qualifiers_name () |
Return a string representation of this typeNode's type qualifiers. | |
typeNode * | type () const |
Return this typeNode's subtype. | |
void | type (typeNode *the_type) |
Set this typeNode's subtype. | |
typeNode * | get_type () |
Return this typeNode's subtype, and set it to be empty. | |
Type_qualifiers | type_qualifiers () const |
Return this typeNode's type qualifiers. | |
void | type_qualifiers (Type_qualifiers the_tq) |
Set this typeNode's type qualifiers. | |
void | add_type_qualifiers (Type_qualifiers the_tq) |
Add a new type qualifier to this typeNode. | |
typeNode * | add_type_qualifiers_and (Type_qualifiers the_tq) |
Add a new type qualifier to this typeNode, and return the typeNode. | |
void | remove_type_qualifiers (Type_qualifiers the_tq) |
Remove a type qualifier from this typeNode. | |
int | alloc_size (void) const |
Indicates the size of memory necessary for this type. | |
void | alloc_size (int size) |
Sets the size necessary for this type. | |
int | alloc_align (void) const |
Indicates the word alignment necessary for this type. | |
void | alloc_align (int align) |
Sets the alignment necessary for this type. | |
Parser methods | |
void | finish () |
typeNode * | finish_and () |
void | set_base_type (typeNode *base) |
typeNode * | set_base_type_and (typeNode *base) |
void | verify_sue_complete () |
Type comparison operators | |
These operators are used to compare types. They recursively descend the compound types and verify the structure. There are several different variations, depending on the level of strictness. In all cases, typedefs are followed so they don't interfere with the comparison. All operators use the static equal_to() method.
| |
bool | operator== (typeNode &second) |
Strict type comparison. | |
bool | operator<= (typeNode &second) |
Weaker type comparison. | |
bool | operator!= (typeNode &second) |
Strict type inequality. | |
Type predicates | |
These methods support a variety of useful type predicates, most of which are self-explanatory. Each typeNode subclass overrides the methods for which it returns true. | |
virtual bool | is_char () const |
virtual bool | is_int () const |
virtual bool | is_float () const |
virtual bool | is_void () const |
virtual bool | is_ellipsis () const |
virtual bool | is_integer () const |
virtual bool | is_arithmetic () const |
virtual bool | is_scalar () const |
virtual bool | is_aggregate () const |
Accessors | |
Methods to get and set fields in the class. | |
NodeType | typ () const |
Get the node type. | |
Coord | coord () const |
Get the source location. | |
void | coord (const Coord coord) |
Set the source location. | |
bool | parenthesized () const |
Get the parenthesized boolean. | |
void | parenthesized (bool paren) |
Set the parenthesized boolean. | |
annote_list & | annotations () |
Get the annotations list. | |
FlowVal * | gen () const |
Get the "gen" flow value. | |
void | gen (FlowVal *g) |
Set the "gen" flow value. | |
FlowVal * | kill () const |
Get the "kill" flow value. | |
void | kill (FlowVal *k) |
Set the "kill" flow value. | |
Static Public Member Functions | |
string | type_qualifiers_name (Type_qualifiers tq) |
Convert type qualifiers to string. | |
typeNode * | integral_promotions (typeNode *old_type) |
Integral promotions. | |
pair< typeNode *, typeNode * > | usual_arithmetic_conversions (typeNode *left, typeNode *right) |
Usual arithmetic conversions. | |
bool | equal_to (typeNode *first, typeNode *second, bool strict_toplevel, bool strict_recursive) |
Type comparison. | |
void | report () |
Report node count statistics. | |
Private Attributes | |
TREE decl_list | _args |
Formal parameters. | |
bool | _is_knr |
K-and-R style. |
This class represents function types. It is used for both procedure definitions, and for declaring variables of type pointer-to-function. The sub-type is used to hold the return type of the function.
The NodeType is Func.
Definition at line 2484 of file ast.h.
|
Type qualifiers.
This enum holds the possible type qualifiers. The special
Definition at line 1642 of file ast.h. Referenced by typeNode::add_type_qualifiers(), typeNode::equal_to(), typeNode::finish(), typeNode::remove_type_qualifiers(), and typeNode::unwind_tdefs(). |
|
Create a new function type. The new function type has the given type qualifiers, argument list and return type.
Definition at line 45 of file funcnode.cc. Referenced by clone(). |
|
Destroy a funcNode.
Definition at line 512 of file funcnode.cc. |
|
Add parameter types.
Definition at line 311 of file funcnode.cc. References args(), Node::coord(), decl_list, decl_list_p, declNode::name(), CBZ::SyntaxError(), declNode::type(), and CBZ::Warning(). Referenced by declNode::add_parameter_types(). |
|
Add a new type qualifier to this typeNode.
Definition at line 1783 of file ast.h. References typeNode::Type_qualifiers. Referenced by typeNode::add_type_qualifiers_and(), and typeNode::finish(). |
|
Add a new type qualifier to this typeNode, and return the typeNode.
Definition at line 1789 of file ast.h. References typeNode::add_type_qualifiers(). |
|
Sets the alignment necessary for this type.
|
|
Indicates the word alignment necessary for this type.
Definition at line 1804 of file ast.h. Referenced by procNode::alloc_stack_local(), storage_alloc::assign_arg_stack(), AllocSizeChanger::at_array(), AllocSizeChanger::at_enum(), AllocSizeChanger::at_prim(), AllocSizeChanger::at_ptr(), AllocSizeChanger::at_struct(), AllocSizeChanger::at_tdef(), AllocSizeChanger::at_union(), asm_gen_walker::createTempForRegSave(), LIR::DeclareGlobal(), lir_gen_walker::field_offset(), and lir_gen_walker::gen_call(). |
|
Sets the size necessary for this type.
|
|
Indicates the size of memory necessary for this type.
Definition at line 1798 of file ast.h. Referenced by procNode::alloc_stack_local(), storage_alloc::assign_arg_stack(), AllocSizeChanger::at_array(), AllocSizeChanger::at_enum(), AllocSizeChanger::at_prim(), AllocSizeChanger::at_ptr(), AllocSizeChanger::at_struct(), AllocSizeChanger::at_tdef(), SizeofChanger::at_threeAddr(), AllocSizeChanger::at_unary(), AllocSizeChanger::at_union(), asm_gen_walker::createTempForRegSave(), LIR::DeclareGlobal(), lir_gen_walker::gen_binary_assignment(), lir_gen_walker::gen_call(), lir_gen_walker::gen_global_decl(), and lir_gen_walker::index_offset(). |
|
Get the annotations list. This method returns a modifiable reference to the list of annotations on the node. Users can add new annotations, search for annotations, or remove annotations. Users are responsible for ensuring that every element of the annotation list points to a valid annotation. In particular, no element should be NULL.
Definition at line 276 of file ast.h. References annote_list. |
|
Definition at line 2543 of file ast.h. References decl_list. |
|
|
Return the base data type of a node. This method differs from the Node::type() method in two respects. First, it follows some of the simple type inferences. For example, calling it on an idNode will return the type of its declaration. Second, the boolean argument indicates whether or not to follow typedef links.
Reimplemented from Node. Reimplemented in tdefNode. Definition at line 1972 of file ast.h. Referenced by tdefNode::base_type(), idNode::base_type(), exprNode::base_type(), declNode::base_type(), and callNode::base_type(). |
|
Dispatch a Changer. This abstract method works much the walker, but allows the tree to be changed.
Implements Node. Definition at line 474 of file funcnode.cc. References args(), Changer::at_func(), Changer::Both, Node::change(), change_list(), Changer::order(), Changer::Order, Changer::Postorder, Changer::Preorder, and returns(). |
|
Check conversions. This method may be obsolete. It just calls typeNode::usual_unary_conversion_type() on each argument, returning false if any of the resulting types are incompatible with the original types. Definition at line 165 of file funcnode.cc. References args(), decl_list, decl_list_p, and typeNode::usual_unary_conversion_type(). Referenced by is_compatible_with(). |
|
Clone the input node. This is not a "deep" clone, so be careful. For a deep clone, use the ref_clone_changer class.
Implements Node. Definition at line 2622 of file ast.h. References funcNode(). |
|
Set the source location. This location should indicate the position in the source text that this Node represents, or Coord::Unknown if it does not represent any node in the source text. It is not common to set the source location of a node. Currently, only the compiler error messages actually make use of it.
|
|
|
Run the dataflow analyzer. Each subclass overrides this method to define it's semantics for dataflow analysis. It alters the input flow value to reflect the effect of the node within the given flow problem, calling dataflow() on it's subtrees as necessary. See the dataflow analysis documentation for more information.
Implements Node. |
|
Call base_type() with the argument true.
Definition at line 157 of file node.cc. References Node::base_type(). Referenced by is_void_args(). |
|
Call base_type() with the argument false.
Definition at line 162 of file node.cc. References Node::base_type(). |
|
Definition at line 57 of file typenode.cc. References typeNode::is_derived(), and typeNode::type(). Referenced by typeNode::finish(), and declNode::inherit_type(). |
|
Type comparison. This static method compares two types, descending into the subtypes and following typedefs as necessary. The two boolean arguments control how strict the algorithm is with respect to type qualifiers. Passing true requires all type qualifiers to be the same. Passing false only requires those type qualifiers that affect compatibility to be the same. (Was TypeEqualQualified in type.c) This routine relies on the qualified_equal_to() methods on each kind of typeNode to perform the appropriate comparison and dispatch to the sub-type when necessary.
Definition at line 215 of file typenode.cc. References Array, typeNode::NONE, Ptr, typeNode::qualified_equal_to(), Node::typ(), typeNode::Type_qualifiers, and typeNode::unwind_tdefs(). Referenced by typeNode::operator<=(), typeNode::operator==(), ptrNode::qualified_equal_to(), qualified_equal_to(), and arrayNode::qualified_equal_to(). |
|
Reimplemented in primNode. Definition at line 116 of file typenode.cc. References typeNode::add_type_qualifiers(), Node::coord(), typeNode::deep_base_type(), Func, typeNode::INLINE, typeNode::remove_type_qualifiers(), CBZ::SyntaxError(), Node::typ(), typeNode::type_qualifiers(), typeNode::Type_qualifiers, and CBZ::Warning(). Referenced by declNode::finish(), and typeNode::finish_and(). |
|
Reimplemented in primNode. Definition at line 137 of file typenode.cc. References typeNode::finish(). |
|
Follow typedefs. Follow the chain of typedefs from this type, returning the underlying (non-typedef) type.
Definition at line 167 of file typenode.cc. References tdefNode::def(), Tdef, and Node::typ(). Referenced by UnificationBasedPtr::at_call(), UnificationBasedPtr::at_initializer(), Linker::at_threeAddr(), Pointers::eval(), lir_gen_walker::field_offset(), typeNode::no_tdef_type(), declNode::no_tdef_type(), exprNode::no_tdef_type(), operandNode::noncast_type(), and Unify_Size::sizeOfAssign(). |
|
Set the "gen" flow value. This value is used in dataflow analyses to store information that is generated at this node. Note that each node has exactly one "gen" flow value. In order to set the flow value to be empty, call this method with a value of NULL.
|
|
Get the "gen" flow value. This value is used in dataflow analyses to store information that is generated at this node. Note that each node has exactly one "gen" flow value.
|
|
Return this typeNode's subtype, and set it to be empty.
|
|
Integral promotions.
This method is used during parsing to convert smaller types (
Definition at line 288 of file typenode.cc. References primNode::basic(), basic_type::is_char(), basic_type::is_float(), basic_type::is_int(), basic_type::is_short(), basic_type::is_unsigned(), Prim, and Node::typ(). Referenced by exprNode::integral_promotions(), and typeNode::usual_arithmetic_conversions(). |
|
Reimplemented in arrayNode, and structNode. Definition at line 1956 of file ast.h. Referenced by AllocToMemWalker::at_decl(), InitializerDismantle::at_decl(), lir_gen_walker::gen_global_decl(), arch_info::get_data_align(), and LirUtil::getTypeString(). |
|
Reimplemented in primNode, and enumNode. Definition at line 1954 of file ast.h. Referenced by semcheck_expr_visitor::check_binary(), and semcheck_expr_visitor::check_unary(). |
|
Reimplemented in primNode. Definition at line 1947 of file ast.h. Referenced by LIR::Call(), arrayNode::is_string(), and Register::setType(). |
|
Compare two functions for compatibility. From ANSI 6.5.4.3, this method compares two function types for compatibility. This is the basis for the type comparison of this type. See the ANSI standard for the rules.
Definition at line 193 of file funcnode.cc. References args(), check_conversions(), decl_list, decl_list_p, declNode::decl_location(), is_void_args(), and returns(). Referenced by id_lookup_walker::at_decl(). |
|
Reimplemented from typeNode. |
|
Reimplemented in primNode. Definition at line 1951 of file ast.h. Referenced by UnificationBasedPtr::at_decl(), lir_gen_walker::gen_arg_decl(), memoryBlock::generate_su_field_name(), LirUtil::getTypeString(), memoryBlock::name(), Pointers::pass_parameters(), and UnificationBasedPtr::print_ecr(). |
|
|
Reimplemented in primNode, and enumNode. Definition at line 1948 of file ast.h. Referenced by LIR::Call(), and Register::setType(). |
|
Reimplemented in primNode, and enumNode. Definition at line 1953 of file ast.h. Referenced by storage_alloc::assign_arg_register(), semcheck_expr_visitor::at_binary(), AllocToMemWalker::at_operand(), semcheck_expr_visitor::check_binary(), semcheck_expr_visitor::check_unary(), asm_gen_walker::doCallerSave(), Register::getRegRetVal(), and briggs_reg_alloc::interfere(). |
|
|
|
Definition at line 2548 of file ast.h. Referenced by output_type(). |
|
Reimplemented from typeNode. |
|
Reimplemented in primNode, ptrNode, arrayNode, and enumNode. Definition at line 1955 of file ast.h. Referenced by InitializerDismantle::at_decl(), semcheck_expr_visitor::check_binary(), semcheck_expr_visitor::check_unary(), lir_gen_walker::gen_call_assignment(), and lir_gen_walker::gen_simple_assignment(). |
|
Reimplemented in primNode. Definition at line 1950 of file ast.h. Referenced by UnificationBasedPtr::at_call(), ExpressionDismantle::at_call(), ExpressionDismantle::at_cast(), UnificationBasedPtr::at_proc(), ReturnDismantle::at_proc(), TernaryDismantle::at_ternary(), semcheck_expr_visitor::check_binary(), lir_gen_walker::gen_arg_decl(), Register::getRegRetVal(), LirUtil::getTypeString(), and is_void_args(). |
|
Is void argument list.
Definition at line 119 of file funcnode.cc. References args(), Node::datatype(), decl_list, and typeNode::is_void(). Referenced by UnitWalker::at_proc(), function_inline::inliner(), is_compatible_with(), and Pointers::pass_parameters(). |
|
Set the "kill" flow value. This value is used in dataflow analyses to store information that is killed at this node. Note that each node has exactly one "kill" flow value. To set the flow value to be empty, call this method with a value of NULL.
|
|
Get the "kill" flow value. This value is used in dataflow analyses to store information that is killed at this node. Note that each node has exactly one "kill" flow value.
|
|
|
Strict type inequality. This is just a negation of the operator==
|
|
Weaker type comparison. Compare this type to the given type, masking off type qualifiers that don't affect compatibility of types.
Definition at line 1864 of file ast.h. References typeNode::equal_to(). |
|
Strict type comparison. Compare this type to the given type, requiring all type qualifiers to be the same.
Definition at line 1852 of file ast.h. References typeNode::equal_to(). |
|
Generate C code. Each subclass overrides this method to define how to produce the output C code. To use this method, pass an output_context and a null parent.
Implements Node. Definition at line 444 of file typenode.cc. References typeNode::output_type(), and typeNode::type_qualifiers(). Referenced by unaryNode::output_expr(), operandNode::output_expr(), castNode::output_expr(), and threeAddrNode::output_stmt(). |
|
Output a type.
Implements typeNode. Definition at line 429 of file funcnode.cc. References args(), decl_list_p, is_knr(), Left, output_delim_list(), typeNode::output_type(), returns(), output_context::space(), and typeNode::type_qualifiers_name(). |
|
Set the parenthesized boolean. This boolean determines whether this expression will be parenthesized in the output. Note that that the parentheses will always be added when they are needed to disambiguate the output. This variable only controls the use of "un-necessary" parentheses.
|
|
Get the parenthesized boolean.
Definition at line 252 of file ast.h. Referenced by exprNode::parens(), and CBZ::WarnAboutPrecedence(). |
|
Virtual type comparison routine. Each typeNode subclass overrides this routine to provide its specific type comparison. This is used by the static equal_to() method to perform general deep type comparison.
Reimplemented from typeNode. Definition at line 61 of file funcnode.cc. References args(), Decl, decl_list, decl_list_p, typeNode::equal_to(), returns(), and typeNode::type(). |
|
Remove a type qualifier from this typeNode.
Definition at line 1794 of file ast.h. References typeNode::Type_qualifiers. Referenced by typeNode::finish(). |
|
Report node count statistics. The code can be configured to gather statistics about node usage according to type. This method prints the current state of that accounting information to standard out. Definition at line 184 of file node.cc. References Node::_count, Node::_t_count, Array, Attrib, Binary, Block, Break, Call, Case, Cast, Comma, Const, Continue, Decl, Do, Enum, Expr, For, Func, Goto, Id, If, Initializer, Label, Prim, Proc, Ptr, Return, Struct, sueSpec, Switch, Tdef, Ternary, Text, Unary, Undeclared, Union, and While. |
|
Definition at line 2546 of file ast.h. References typeNode::type(). |
|
Definition at line 2545 of file ast.h. References typeNode::type(). Referenced by UnificationBasedPtr::at_call(), vcgASTWalker::at_func(), tree_visitor::at_func(), TreeChecker::at_func(), UnificationBasedPtr::at_proc(), ReturnDismantle::at_proc(), change(), is_compatible_with(), output_type(), qualified_equal_to(), and walk(). |
|
Definition at line 86 of file typenode.cc. References typeNode::is_derived(), and typeNode::type(). Referenced by declNode::modify_type(), and typeNode::set_base_type_and(). |
|
Definition at line 99 of file typenode.cc. References typeNode::set_base_type(). |
|
|
Set this typeNode's subtype. To set the subtype to be empty, call this method with a value of NULL. |
|
|
Set this typeNode's type qualifiers.
|
|
Return this typeNode's type qualifiers.
Definition at line 1772 of file ast.h. Referenced by identify_inlinees::at_threeAddr(), semcheck_expr_visitor::check_binary(), typeNode::finish(), typeNode::output(), typeNode::type_qualifiers_name(), and typeNode::unwind_tdefs(). |
|
Return a string representation of this typeNode's type qualifiers.
Definition at line 1779 of file ast.h. References typeNode::type_qualifiers(). Referenced by tdefNode::output_type(), sueNode::output_type(), ptrNode::output_type(), primNode::output_type(), and output_type(). |
|
Convert type qualifiers to string. This method is used when generating C code to convert the type qualifiers into string form.
Definition at line 257 of file typenode.cc. References typeNode::CONST, typeNode::INLINE, and typeNode::VOLATILE. Referenced by print_walker::at_array(), print_tree_visitor::at_array(), print_walker::at_func(), print_tree_visitor::at_func(), print_walker::at_prim(), print_tree_visitor::at_prim(), print_walker::at_ptr(), print_tree_visitor::at_ptr(), print_walker::at_suespec(), print_tree_visitor::at_suespec(), print_walker::at_tdef(), and print_tree_visitor::at_tdef(). |
|
Unwind typedefs.
Definition at line 194 of file typenode.cc. References tdefNode::def(), Tdef, Node::typ(), typeNode::Type_qualifiers, and typeNode::type_qualifiers(). Referenced by typeNode::equal_to(). |
|
Usual arithmetic conversions. From ANSI 6.2.1.5: Many binary operators that expect operands of arithmetic type cause conversions and yield result types in a similar way. The purpose is to yield a common type, which is also the type of the result. This method takes the types of the left and right operands and returns a pair of types indicating the conversions of the two operands, respectively. When necessary, these conversion include the integral promotions.
Definition at line 319 of file typenode.cc. References basic_type::Double, basic_type::Float, typeNode::integral_promotions(), basic_type::LongDouble, Prim, basic_type::SLong, Node::typ(), basic_type::UInt, and basic_type::ULong. Referenced by exprNode::usual_arithmetic_conversions(). |
|
Usual unary conversion type. The purpose of this method escapes me. The constNode class seems to use it, but all it does is return itself. No other typeNode overrides it. Definition at line 1968 of file ast.h. Referenced by check_conversions(), and constNode::usual_unary_conversion_type(). |
|
Definition at line 147 of file typenode.cc. References sue_complete_walker::check(). Referenced by declNode::finish(). |
|
Dispatch a Visitor. This abstract method is the entry point for the visitor design pattern. Each node subclass defines a visit() method that calls the appropriate at_ method in the visitor. For more information see the Visitor documentation.
Implements Node. Definition at line 400 of file funcnode.cc. References Visitor::at_func(). |
|
Dispatch a Walker. This abstract method works much like the visitor, but instead walks the entire underlying subtree calling the appropriate at_ method at each node. For more information see the Walker documentation.
Implements Node. Definition at line 405 of file funcnode.cc. References args(), Walker::at_func(), Walker::Both, Walker::depth(), list_walker(), Walker::order(), Walker::Order, Walker::Postorder, Walker::Preorder, returns(), Walker::Subtree, and Node::walk(). |
|
Formal parameters. This list contains the declarations of the formal parameters to the function. There are several special kinds of arguments:
The class provides methods to conveniently check for these cases. Definition at line 2507 of file ast.h. Referenced by funcNode(). |
|
K-and-R style. True if the function type was parsed from an old K-and-R style declaration (argument types separate from the argument list). |
|
Definition at line 116 of file node.cc. Referenced by gcWalker::delete_nodes(), and Node::~Node(). |
|
Definition at line 170 of file ast.h. Referenced by gcWalker::at_binary(), gcWalker::at_node(), gcWalker::delete_nodes(), and SymbolTable< T >::mark_nodes(). |
|
Definition at line 115 of file node.cc. Referenced by gcWalker::delete_nodes(), gcWalker::gcWalker(), and Node::Node(). |
Generated on August 27, 2003
Back to the C-Breeze home page