clang API Documentation
A default argument (C++ [dcl.fct.default]). More...
#include <ExprCXX.h>
Public Member Functions | |
CXXDefaultArgExpr (EmptyShell Empty) | |
const ParmVarDecl * | getParam () const |
ParmVarDecl * | getParam () |
const Expr * | getExpr () const |
Expr * | getExpr () |
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 CXXDefaultArgExpr * | Create (const ASTContext &C, SourceLocation Loc, ParmVarDecl *Param) |
static CXXDefaultArgExpr * | Create (const ASTContext &C, SourceLocation Loc, ParmVarDecl *Param, Expr *SubExpr) |
static bool | classof (const Stmt *T) |
Friends | |
class | ASTStmtReader |
class | ASTStmtWriter |
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.
clang::CXXDefaultArgExpr::CXXDefaultArgExpr | ( | EmptyShell | Empty | ) | [inline] |
child_range clang::CXXDefaultArgExpr::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
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] |
Definition at line 889 of file ExprCXX.h.
References AttributeLangSupport::C.
Referenced by clang::Sema::BuildCXXDefaultArgExpr(), and clang::TreeTransform< Derived >::RebuildCXXDefaultArgExpr().
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().
Expr* clang::CXXDefaultArgExpr::getExpr | ( | ) | [inline] |
Definition at line 909 of file ExprCXX.h.
References clang::ParmVarDecl::getDefaultArg(), and getParam().
SourceLocation clang::CXXDefaultArgExpr::getExprLoc | ( | ) | const [inline] |
getExprLoc - Return the preferred location for the arrow when diagnosing a problem with a generic expression.
Reimplemented from clang::Expr.
SourceLocation clang::CXXDefaultArgExpr::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
SourceLocation clang::CXXDefaultArgExpr::getLocStart | ( | ) | const [inline] |
Default argument expressions have no representation in the source, so they have an empty source range.
Reimplemented from clang::Stmt.
const ParmVarDecl* clang::CXXDefaultArgExpr::getParam | ( | ) | const [inline] |
ParmVarDecl* clang::CXXDefaultArgExpr::getParam | ( | ) | [inline] |
SourceLocation clang::CXXDefaultArgExpr::getUsedLocation | ( | ) | const [inline] |
friend class ASTStmtReader [friend] |
Reimplemented from clang::Stmt.
friend class ASTStmtWriter [friend] |
Reimplemented from clang::Stmt.