clang 20.0.0git
Public Member Functions | List of all members
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 56 of file ASTOps.h.

Constructor & Destructor Documentation

◆ RecordInitListHelper() [1/2]

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

Definition at line 118 of file ASTOps.cpp.

◆ RecordInitListHelper() [2/2]

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

Definition at line 123 of file ASTOps.cpp.

Member Function Documentation

◆ base_inits()

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

Definition at line 63 of file ASTOps.h.

◆ field_inits()

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

Definition at line 68 of file ASTOps.h.


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