clang API Documentation

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

#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.
SourceRange getSourceRange () const LLVM_READONLY
child_range children ()

Static Public Member Functions

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

Friends

class ASTStmtReader
class ASTStmtWriter

Detailed Description

CXXDefaultArgExpr - 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 720 of file ExprCXX.h.


Constructor & Destructor Documentation

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

Definition at line 750 of file ExprCXX.h.


Member Function Documentation

child_range clang::CXXDefaultArgExpr::children ( ) [inline]

Reimplemented from clang::Stmt.

Definition at line 799 of file ExprCXX.h.

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

Reimplemented from clang::Expr.

Definition at line 793 of file ExprCXX.h.

References clang::Stmt::getStmtClass().

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

Definition at line 796 of file ExprCXX.h.

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

Definition at line 659 of file ExprCXX.cpp.

References clang::ASTContext::Allocate().

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

Definition at line 772 of file ExprCXX.h.

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

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

Definition at line 777 of file ExprCXX.h.

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

const ParmVarDecl* clang::CXXDefaultArgExpr::getParam ( ) const [inline]

Definition at line 768 of file ExprCXX.h.

Referenced by getExpr().

ParmVarDecl* clang::CXXDefaultArgExpr::getParam ( ) [inline]

Definition at line 769 of file ExprCXX.h.

SourceRange clang::CXXDefaultArgExpr::getSourceRange ( ) const [inline]

SourceLocation tokens are not useful in isolation - they are low level value objects created/interpreted by SourceManager. We assume AST clients will have a pointer to the respective SourceManager.

Reimplemented from clang::Stmt.

Definition at line 787 of file ExprCXX.h.

SourceLocation clang::CXXDefaultArgExpr::getUsedLocation ( ) const [inline]

Retrieve the location where this default argument was actually used.

Definition at line 785 of file ExprCXX.h.


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::Stmt.

Definition at line 801 of file ExprCXX.h.

friend class ASTStmtWriter [friend]

Reimplemented from clang::Stmt.

Definition at line 802 of file ExprCXX.h.


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