clang 22.0.0git
clang::dataflow::RecordInitListHelper Class Reference

Helper class for initialization of a record with an InitListExpr. More...

#include "clang/Analysis/FlowSensitive/ASTOps.h"

Public Member Functions

 RecordInitListHelper (const InitListExpr *InitList)
 RecordInitListHelper (const CXXParenListInitExpr *ParenInitList)
ArrayRef< std::pair< const CXXBaseSpecifier *, Expr * > > base_inits () const
ArrayRef< std::pair< const FieldDecl *, Expr * > > field_inits () const

Detailed Description

Helper class for initialization of a record with an InitListExpr.

InitListExpr::inits() contains the initializers for both the base classes and the fields of the record; this helper class separates these out into two different lists. In addition, it deals with special cases associated with unions.

Definition at line 57 of file ASTOps.h.

Constructor & Destructor Documentation

◆ RecordInitListHelper() [1/2]

clang::dataflow::RecordInitListHelper::RecordInitListHelper ( const InitListExpr * InitList)

◆ RecordInitListHelper() [2/2]

clang::dataflow::RecordInitListHelper::RecordInitListHelper ( const CXXParenListInitExpr * ParenInitList)

Member Function Documentation

◆ base_inits()

ArrayRef< std::pair< const CXXBaseSpecifier *, Expr * > > clang::dataflow::RecordInitListHelper::base_inits ( ) const
inline

Definition at line 64 of file ASTOps.h.

◆ field_inits()

ArrayRef< std::pair< const FieldDecl *, Expr * > > clang::dataflow::RecordInitListHelper::field_inits ( ) const
inline

Definition at line 69 of file ASTOps.h.


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