clang  14.0.0git
Public Types | Public Member Functions | Public Attributes | List of all members
clang::Sema::NamedReturnInfo Struct Reference

#include "clang/Sema/Sema.h"

Collaboration diagram for clang::Sema::NamedReturnInfo:
Collaboration graph
[legend]

Public Types

enum  Status : uint8_t { None, MoveEligible, MoveEligibleAndCopyElidable }
 

Public Member Functions

bool isMoveEligible () const
 
bool isCopyElidable () const
 

Public Attributes

const VarDeclCandidate
 
Status S
 

Detailed Description

Definition at line 4806 of file Sema.h.

Member Enumeration Documentation

◆ Status

Enumerator
None 
MoveEligible 
MoveEligibleAndCopyElidable 

Definition at line 4809 of file Sema.h.

Member Function Documentation

◆ isCopyElidable()

bool clang::Sema::NamedReturnInfo::isCopyElidable ( ) const
inline

Definition at line 4813 of file Sema.h.

References MoveEligibleAndCopyElidable, and S.

Referenced by clang::Sema::getCopyElisionCandidate().

◆ isMoveEligible()

bool clang::Sema::NamedReturnInfo::isMoveEligible ( ) const
inline

Definition at line 4812 of file Sema.h.

References None, and S.

Referenced by clang::Sema::PerformMoveOrCopyInitialization().

Member Data Documentation

◆ Candidate

const VarDecl* clang::Sema::NamedReturnInfo::Candidate

◆ S

Status clang::Sema::NamedReturnInfo::S

Definition at line 4810 of file Sema.h.

Referenced by clang::Sema::getCopyElisionCandidate(), isCopyElidable(), and isMoveEligible().


The documentation for this struct was generated from the following file: