clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::CXXDefaultArgExpr Class Reference

A default argument (C++ [dcl.fct.default]). More...

#include <ExprCXX.h>

Inheritance diagram for clang::CXXDefaultArgExpr:
Inheritance graph
[legend]
Collaboration diagram for clang::CXXDefaultArgExpr:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CXXDefaultArgExpr (EmptyShell Empty)
const ParmVarDeclgetParam () const
ParmVarDeclgetParam ()
const ExprgetExpr () const
ExprgetExpr ()
SourceLocation getUsedLocation () const
 Retrieve the location where this default argument was actually used.
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
SourceLocation getExprLoc () const LLVM_READONLY
child_range children ()

Static Public Member Functions

static CXXDefaultArgExprCreate (const ASTContext &C, SourceLocation Loc, ParmVarDecl *Param)
static CXXDefaultArgExprCreate (const ASTContext &C, SourceLocation Loc, ParmVarDecl *Param, Expr *SubExpr)
static bool classof (const Stmt *T)

Friends

class ASTStmtReader
class ASTStmtWriter

Detailed Description

A default argument (C++ [dcl.fct.default]).

This wraps up a function call argument that was created from the corresponding parameter's default argument, when the call did not explicitly supply arguments for all of the parameters.

Definition at line 855 of file ExprCXX.h.


Constructor & Destructor Documentation

clang::CXXDefaultArgExpr::CXXDefaultArgExpr ( EmptyShell  Empty) [inline]

Definition at line 885 of file ExprCXX.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 931 of file ExprCXX.h.

static bool clang::CXXDefaultArgExpr::classof ( const Stmt T) [inline, static]

Reimplemented from clang::Expr.

Definition at line 926 of file ExprCXX.h.

References clang::Stmt::getStmtClass().

static CXXDefaultArgExpr* clang::CXXDefaultArgExpr::Create ( const ASTContext C,
SourceLocation  Loc,
ParmVarDecl Param 
) [inline, static]
CXXDefaultArgExpr * CXXDefaultArgExpr::Create ( const ASTContext C,
SourceLocation  Loc,
ParmVarDecl Param,
Expr SubExpr 
) [static]

Definition at line 769 of file ExprCXX.cpp.

References clang::ASTContext::Allocate().

const Expr* clang::CXXDefaultArgExpr::getExpr ( ) const [inline]

Definition at line 904 of file ExprCXX.h.

References clang::ParmVarDecl::getDefaultArg(), and getParam().

Definition at line 909 of file ExprCXX.h.

References clang::ParmVarDecl::getDefaultArg(), and getParam().

getExprLoc - Return the preferred location for the arrow when diagnosing a problem with a generic expression.

Reimplemented from clang::Expr.

Definition at line 924 of file ExprCXX.h.

Reimplemented from clang::Stmt.

Definition at line 922 of file ExprCXX.h.

Default argument expressions have no representation in the source, so they have an empty source range.

Reimplemented from clang::Stmt.

Definition at line 921 of file ExprCXX.h.

Definition at line 900 of file ExprCXX.h.

Referenced by getExpr().

Definition at line 901 of file ExprCXX.h.

Retrieve the location where this default argument was actually used.

Definition at line 917 of file ExprCXX.h.


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::Stmt.

Definition at line 933 of file ExprCXX.h.

friend class ASTStmtWriter [friend]

Reimplemented from clang::Stmt.

Definition at line 934 of file ExprCXX.h.


The documentation for this class was generated from the following files: