clang 24.0.0git
clang::FunctionDecl::DefaultedFunctionKind Class Reference

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

#include "clang/AST/Decl.h"

Public Member Functions

 DefaultedFunctionKind ()
 DefaultedFunctionKind (CXXSpecialMemberKind CSM)
 DefaultedFunctionKind (DefaultedComparisonKind Comp)
 DefaultedFunctionKind (PostfixOperatorKind PO)
bool isSpecialMember () const
bool isComparison () const
bool isPostfixOperator () const
 operator bool () const
CXXSpecialMemberKind asSpecialMember () const
DefaultedComparisonKind asComparison () const
PostfixOperatorKind asPostfixOperator () const
unsigned getDiagnosticIndex () const
 Get the index of this function kind for use in diagnostics.

Detailed Description

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

Definition at line 2146 of file Decl.h.

Constructor & Destructor Documentation

◆ DefaultedFunctionKind() [1/4]

clang::FunctionDecl::DefaultedFunctionKind::DefaultedFunctionKind ( )
inline

Definition at line 2155 of file Decl.h.

References clang::Invalid, and clang::None.

Referenced by DefaultedFunctionKind(), DefaultedFunctionKind(), and DefaultedFunctionKind().

◆ DefaultedFunctionKind() [2/4]

clang::FunctionDecl::DefaultedFunctionKind::DefaultedFunctionKind ( CXXSpecialMemberKind CSM)
inline

Definition at line 2159 of file Decl.h.

References DefaultedFunctionKind().

◆ DefaultedFunctionKind() [3/4]

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

Definition at line 2162 of file Decl.h.

References DefaultedFunctionKind().

◆ DefaultedFunctionKind() [4/4]

clang::FunctionDecl::DefaultedFunctionKind::DefaultedFunctionKind ( PostfixOperatorKind PO)
inline

Definition at line 2167 of file Decl.h.

References DefaultedFunctionKind().

Member Function Documentation

◆ asComparison()

◆ asPostfixOperator()

◆ asSpecialMember()

◆ getDiagnosticIndex()

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

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

Definition at line 2200 of file Decl.h.

References clang::Destructor, clang::Invalid, clang::None, and unsigned.

◆ isComparison()

◆ isPostfixOperator()

◆ isSpecialMember()

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

◆ operator bool()

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

Definition at line 2184 of file Decl.h.

References isComparison(), isPostfixOperator(), and isSpecialMember().


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