clang 20.0.0git
Public Types | Public Member Functions | Public Attributes | List of all members
clang::BadConversionSequence Struct Reference

BadConversionSequence - Records information about an invalid conversion sequence. More...

#include "clang/Sema/Overload.h"

Public Types

enum  FailureKind {
  no_conversion , unrelated_class , bad_qualifiers , lvalue_ref_to_rvalue ,
  rvalue_ref_to_lvalue , too_few_initializers , too_many_initializers
}
 

Public Member Functions

void init (FailureKind K, Expr *From, QualType To)
 
void init (FailureKind K, QualType From, QualType To)
 
QualType getFromType () const
 
QualType getToType () const
 
void setFromExpr (Expr *E)
 
void setFromType (QualType T)
 
void setToType (QualType T)
 

Public Attributes

ExprFromExpr
 
FailureKind Kind
 

Detailed Description

BadConversionSequence - Records information about an invalid conversion sequence.

Definition at line 515 of file Overload.h.

Member Enumeration Documentation

◆ FailureKind

Enumerator
no_conversion 
unrelated_class 
bad_qualifiers 
lvalue_ref_to_rvalue 
rvalue_ref_to_lvalue 
too_few_initializers 
too_many_initializers 

Definition at line 516 of file Overload.h.

Member Function Documentation

◆ getFromType()

QualType clang::BadConversionSequence::getFromType ( ) const
inline

Definition at line 551 of file Overload.h.

References clang::QualType::getFromOpaquePtr().

Referenced by DiagnoseBadConversion().

◆ getToType()

QualType clang::BadConversionSequence::getToType ( ) const
inline

Definition at line 552 of file Overload.h.

References clang::QualType::getFromOpaquePtr().

Referenced by DiagnoseBadConversion().

◆ init() [1/2]

void clang::BadConversionSequence::init ( FailureKind  K,
Expr From,
QualType  To 
)
inline

Definition at line 539 of file Overload.h.

References FromExpr, clang::Expr::getType(), and init().

Referenced by init(), and clang::ImplicitConversionSequence::setBad().

◆ init() [2/2]

void clang::BadConversionSequence::init ( FailureKind  K,
QualType  From,
QualType  To 
)
inline

Definition at line 544 of file Overload.h.

References FromExpr, Kind, setFromType(), and setToType().

◆ setFromExpr()

void clang::BadConversionSequence::setFromExpr ( Expr E)
inline

Definition at line 554 of file Overload.h.

References E, FromExpr, and setFromType().

◆ setFromType()

void clang::BadConversionSequence::setFromType ( QualType  T)
inline

Definition at line 559 of file Overload.h.

References clang::T.

Referenced by init(), and setFromExpr().

◆ setToType()

void clang::BadConversionSequence::setToType ( QualType  T)
inline

Definition at line 560 of file Overload.h.

References clang::T.

Referenced by init().

Member Data Documentation

◆ FromExpr

Expr* clang::BadConversionSequence::FromExpr

◆ Kind

FailureKind clang::BadConversionSequence::Kind

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