clang API Documentation

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

A use of a default initializer in a constructor or in aggregate initialization. More...

#include <ExprCXX.h>

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

List of all members.

Public Member Functions

FieldDeclgetField ()
 Get the field whose initializer will be used.
const FieldDeclgetField () const
const ExprgetExpr () const
 Get the initialization expression that will be used.
ExprgetExpr ()
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
child_range children ()

Static Public Member Functions

static CXXDefaultInitExprCreate (const ASTContext &C, SourceLocation Loc, FieldDecl *Field)
static bool classof (const Stmt *T)

Friends

class ASTReader
class ASTStmtReader

Detailed Description

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).

Definition at line 945 of file ExprCXX.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 987 of file ExprCXX.h.

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().

Definition at line 974 of file ExprCXX.h.

References clang::FieldDecl::getInClassInitializer().

Get the field whose initializer will be used.

Definition at line 966 of file ExprCXX.h.

Definition at line 967 of file ExprCXX.h.

Reimplemented from clang::Stmt.

Definition at line 980 of file ExprCXX.h.

Reimplemented from clang::Stmt.

Definition at line 979 of file ExprCXX.h.


Friends And Related Function Documentation

friend class ASTReader [friend]

Definition at line 989 of file ExprCXX.h.

friend class ASTStmtReader [friend]

Reimplemented from clang::Stmt.

Definition at line 990 of file ExprCXX.h.


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