clang API Documentation
A use of a default initializer in a constructor or in aggregate initialization. More...
#include <ExprCXX.h>
Public Member Functions | |
FieldDecl * | getField () |
Get the field whose initializer will be used. | |
const FieldDecl * | getField () const |
const Expr * | getExpr () const |
Get the initialization expression that will be used. | |
Expr * | getExpr () |
SourceLocation | getLocStart () const LLVM_READONLY |
SourceLocation | getLocEnd () const LLVM_READONLY |
child_range | children () |
Static Public Member Functions | |
static CXXDefaultInitExpr * | Create (const ASTContext &C, SourceLocation Loc, FieldDecl *Field) |
static bool | classof (const Stmt *T) |
Friends | |
class | ASTReader |
class | ASTStmtReader |
A use of a default initializer in a constructor or in aggregate initialization.
This wraps a use of a C++ default initializer (technically, a brace-or-equal-initializer for a non-static data member) when it is implicitly used in a mem-initializer-list in a constructor (C++11 [class.base.init]p8) or in aggregate initialization (C++1y [dcl.init.aggr]p7).
child_range clang::CXXDefaultInitExpr::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
static bool clang::CXXDefaultInitExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::Expr.
Definition at line 982 of file ExprCXX.h.
References clang::Stmt::getStmtClass().
static CXXDefaultInitExpr* clang::CXXDefaultInitExpr::Create | ( | const ASTContext & | C, |
SourceLocation | Loc, | ||
FieldDecl * | Field | ||
) | [inline, static] |
Field
is the non-static data member whose default initializer is used by this expression.
Definition at line 960 of file ExprCXX.h.
References AttributeLangSupport::C, and clang::ValueDecl::getType().
Referenced by clang::Sema::BuildCXXDefaultInitExpr(), and clang::TreeTransform< Derived >::RebuildCXXDefaultInitExpr().
const Expr* clang::CXXDefaultInitExpr::getExpr | ( | ) | const [inline] |
Get the initialization expression that will be used.
Definition at line 970 of file ExprCXX.h.
References clang::FieldDecl::getInClassInitializer().
Expr* clang::CXXDefaultInitExpr::getExpr | ( | ) | [inline] |
Definition at line 974 of file ExprCXX.h.
References clang::FieldDecl::getInClassInitializer().
FieldDecl* clang::CXXDefaultInitExpr::getField | ( | ) | [inline] |
const FieldDecl* clang::CXXDefaultInitExpr::getField | ( | ) | const [inline] |
SourceLocation clang::CXXDefaultInitExpr::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
SourceLocation clang::CXXDefaultInitExpr::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
friend class ASTStmtReader [friend] |
Reimplemented from clang::Stmt.