clang 19.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 55 of file ASTOps.h.

Constructor & Destructor Documentation

◆ RecordInitListHelper() [1/2]

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

Definition at line 117 of file ASTOps.cpp.

◆ RecordInitListHelper() [2/2]

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

Definition at line 122 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 62 of file ASTOps.h.

◆ field_inits()

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

Definition at line 67 of file ASTOps.h.


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