clang API Documentation
#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. | |
| SourceRange | getSourceRange () const LLVM_READONLY |
| child_range | children () |
Static Public Member Functions | |
| static CXXDefaultArgExpr * | Create (ASTContext &C, SourceLocation Loc, ParmVarDecl *Param) |
| static CXXDefaultArgExpr * | Create (ASTContext &C, SourceLocation Loc, ParmVarDecl *Param, Expr *SubExpr) |
| static bool | classof (const Stmt *T) |
| static bool | classof (const CXXDefaultArgExpr *) |
Friends | |
| class | ASTStmtReader |
| class | ASTStmtWriter |
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.
| 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 793 of file ExprCXX.h.
References clang::Stmt::getStmtClass().
| static bool clang::CXXDefaultArgExpr::classof | ( | const CXXDefaultArgExpr * | ) | [inline, static] |
| static CXXDefaultArgExpr* clang::CXXDefaultArgExpr::Create | ( | ASTContext & | C, |
| SourceLocation | Loc, | ||
| ParmVarDecl * | Param | ||
| ) | [inline, static] |
Definition at line 755 of file ExprCXX.h.
Referenced by clang::Sema::BuildCXXDefaultArgExpr(), and clang::TreeTransform< Derived >::RebuildCXXDefaultArgExpr().
| 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] |
| ParmVarDecl* clang::CXXDefaultArgExpr::getParam | ( | ) | [inline] |
| 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.
| SourceLocation clang::CXXDefaultArgExpr::getUsedLocation | ( | ) | const [inline] |
friend class ASTStmtReader [friend] |
Reimplemented from clang::Stmt.
friend class ASTStmtWriter [friend] |
Reimplemented from clang::Stmt.