clang  14.0.0git
Public Member Functions | List of all members
clang::Sema::DefaultedFunctionKind Class Reference

For a defaulted function, the kind of defaulted function that it is. More...

#include "clang/Sema/Sema.h"

Public Member Functions

 DefaultedFunctionKind ()
 
 DefaultedFunctionKind (CXXSpecialMember CSM)
 
 DefaultedFunctionKind (DefaultedComparisonKind Comp)
 
bool isSpecialMember () const
 
bool isComparison () const
 
 operator bool () const
 
CXXSpecialMember asSpecialMember () const
 
DefaultedComparisonKind asComparison () const
 
unsigned getDiagnosticIndex () const
 Get the index of this function kind for use in diagnostics. More...
 

Detailed Description

For a defaulted function, the kind of defaulted function that it is.

Definition at line 3119 of file Sema.h.

Constructor & Destructor Documentation

◆ DefaultedFunctionKind() [1/3]

clang::Sema::DefaultedFunctionKind::DefaultedFunctionKind ( )
inline

Definition at line 3124 of file Sema.h.

◆ DefaultedFunctionKind() [2/3]

clang::Sema::DefaultedFunctionKind::DefaultedFunctionKind ( CXXSpecialMember  CSM)
inline

Definition at line 3127 of file Sema.h.

◆ DefaultedFunctionKind() [3/3]

clang::Sema::DefaultedFunctionKind::DefaultedFunctionKind ( DefaultedComparisonKind  Comp)
inline

Definition at line 3129 of file Sema.h.

Member Function Documentation

◆ asComparison()

DefaultedComparisonKind clang::Sema::DefaultedFunctionKind::asComparison ( ) const
inline

◆ asSpecialMember()

CXXSpecialMember clang::Sema::DefaultedFunctionKind::asSpecialMember ( ) const
inline

◆ getDiagnosticIndex()

unsigned clang::Sema::DefaultedFunctionKind::getDiagnosticIndex ( ) const
inline

Get the index of this function kind for use in diagnostics.

Definition at line 3145 of file Sema.h.

References clang::Sema::CXXDestructor, clang::Sema::CXXInvalid, and clang::Sema::None.

◆ isComparison()

bool clang::Sema::DefaultedFunctionKind::isComparison ( ) const
inline

◆ isSpecialMember()

bool clang::Sema::DefaultedFunctionKind::isSpecialMember ( ) const
inline

◆ operator bool()

clang::Sema::DefaultedFunctionKind::operator bool ( ) const
inlineexplicit

Definition at line 3137 of file Sema.h.

References isComparison(), and isSpecialMember().


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