#include <Decl.h>


Public Member Functions | |
| FunctionDecl (AstResource &resource, IdentifierInfo *name, Location loc, ParamValueDecl **params, unsigned numParams, Type *returnType, DeclRegion *parent) | |
| FunctionDecl (IdentifierInfo *name, Location loc, IdentifierInfo **keywords, FunctionType *type, DeclRegion *parent) | |
| FunctionDecl * | getDefiningDeclaration () |
| const FunctionDecl * | getDefiningDeclaration () const |
| FunctionDecl * | getForwardDeclaration () |
| const FunctionDecl * | getForwardDeclaration () const |
| const FunctionType * | getType () const |
| Returns the type of this function declaration. | |
| FunctionType * | getType () |
| Returns the type of this function declaration. | |
| const Type * | getReturnType () const |
| Provides the return type of this function. | |
| Type * | getReturnType () |
| Returns the type of this function declaration. | |
Static Public Member Functions | |
| static bool | classof (const FunctionDecl *node) |
| Support isa and dyn_cast. | |
| static bool | classof (const Ast *node) |
Protected Member Functions | |
| FunctionDecl (AstKind kind, AstResource &resource, IdentifierInfo *name, Location loc, EnumerationType *returnType, DeclRegion *parent) | |
| FunctionDecl (AstKind kind, IdentifierInfo *name, Location loc, IdentifierInfo **keywords, FunctionType *type, DeclRegion *parent) | |
Definition at line 1137 of file Decl.h.
| FunctionDecl::FunctionDecl | ( | AstResource & | resource, | |
| IdentifierInfo * | name, | |||
| Location | loc, | |||
| ParamValueDecl ** | params, | |||
| unsigned | numParams, | |||
| Type * | returnType, | |||
| DeclRegion * | parent | |||
| ) |
| comma::FunctionDecl::FunctionDecl | ( | IdentifierInfo * | name, | |
| Location | loc, | |||
| IdentifierInfo ** | keywords, | |||
| FunctionType * | type, | |||
| DeclRegion * | parent | |||
| ) | [inline] |
Constructs a FunctionDecl given a FunctionType and set of keywords.
This constructor is most useful for generating implicit declarations, typically using a rewritten type. ParamValue decls are generated using the supplied array of keywords (which must be long enough to match the arity of the supplied type, or 0 if this is a nullary function). The resulting parameter decls all have default modes, and so one must set each by hand if need be afterwords.
| FunctionDecl::FunctionDecl | ( | AstKind | kind, | |
| AstResource & | resource, | |||
| IdentifierInfo * | name, | |||
| Location | loc, | |||
| EnumerationType * | returnType, | |||
| DeclRegion * | parent | |||
| ) | [protected] |
| comma::FunctionDecl::FunctionDecl | ( | AstKind | kind, | |
| IdentifierInfo * | name, | |||
| Location | loc, | |||
| IdentifierInfo ** | keywords, | |||
| FunctionType * | type, | |||
| DeclRegion * | parent | |||
| ) | [inline, protected] |
| static bool comma::FunctionDecl::classof | ( | const Ast * | node | ) | [inline, static] |
Reimplemented from comma::SubroutineDecl.
Reimplemented in comma::FunctionAttribDecl, comma::PosAD, comma::ValAD, and comma::EnumLiteral.
| static bool comma::FunctionDecl::classof | ( | const FunctionDecl * | node | ) | [inline, static] |
Support isa and dyn_cast.
Reimplemented from comma::SubroutineDecl.
Reimplemented in comma::FunctionAttribDecl, comma::PosAD, comma::ValAD, and comma::EnumLiteral.
| const FunctionDecl* comma::FunctionDecl::getDefiningDeclaration | ( | ) | const [inline] |
Reimplemented from comma::SubroutineDecl.
| FunctionDecl* comma::FunctionDecl::getDefiningDeclaration | ( | ) | [inline] |
Reimplemented from comma::SubroutineDecl.
| const FunctionDecl* comma::FunctionDecl::getForwardDeclaration | ( | ) | const [inline] |
Reimplemented from comma::SubroutineDecl.
| FunctionDecl* comma::FunctionDecl::getForwardDeclaration | ( | ) | [inline] |
Reimplemented from comma::SubroutineDecl.
| Type* comma::FunctionDecl::getReturnType | ( | ) | [inline] |
Returns the type of this function declaration.
Reimplemented in comma::EnumLiteral.
| const Type* comma::FunctionDecl::getReturnType | ( | ) | const [inline] |
Provides the return type of this function.
Reimplemented in comma::EnumLiteral.
| FunctionType* comma::FunctionDecl::getType | ( | ) | [inline, virtual] |
Returns the type of this function declaration.
Implements comma::SubroutineDecl.
| const FunctionType* comma::FunctionDecl::getType | ( | ) | const [inline, virtual] |
Returns the type of this function declaration.
Implements comma::SubroutineDecl.
1.6.1