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

Represents an ambiguous user-defined conversion sequence. More...

#include "clang/Sema/Overload.h"

Public Types

using ConversionSet = SmallVector< std::pair< NamedDecl *, FunctionDecl * >, 4 >
 
using iterator = ConversionSet::iterator
 
using const_iterator = ConversionSet::const_iterator
 

Public Member Functions

QualType getFromType () const
 
QualType getToType () const
 
void setFromType (QualType T)
 
void setToType (QualType T)
 
ConversionSetconversions ()
 
const ConversionSetconversions () const
 
void addConversion (NamedDecl *Found, FunctionDecl *D)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
void construct ()
 
void destruct ()
 
void copyFrom (const AmbiguousConversionSequence &)
 

Public Attributes

void * FromTypePtr
 
void * ToTypePtr
 
char Buffer [sizeof(ConversionSet)]
 

Detailed Description

Represents an ambiguous user-defined conversion sequence.

Definition at line 467 of file Overload.h.

Member Typedef Documentation

◆ const_iterator

using clang::AmbiguousConversionSequence::const_iterator = ConversionSet::const_iterator

Definition at line 503 of file Overload.h.

◆ ConversionSet

Definition at line 468 of file Overload.h.

◆ iterator

using clang::AmbiguousConversionSequence::iterator = ConversionSet::iterator

Definition at line 498 of file Overload.h.

Member Function Documentation

◆ addConversion()

void clang::AmbiguousConversionSequence::addConversion ( NamedDecl Found,
FunctionDecl D 
)
inline

Definition at line 494 of file Overload.h.

References conversions(), D, and clang::Found.

Referenced by FindConversionForRefInit(), and TryUserDefinedConversion().

◆ begin() [1/2]

iterator clang::AmbiguousConversionSequence::begin ( )
inline

Definition at line 500 of file Overload.h.

References conversions().

◆ begin() [2/2]

const_iterator clang::AmbiguousConversionSequence::begin ( ) const
inline

Definition at line 505 of file Overload.h.

References conversions().

◆ construct()

void AmbiguousConversionSequence::construct ( )

Definition at line 697 of file SemaOverload.cpp.

References conversions().

Referenced by clang::ImplicitConversionSequence::setAmbiguous().

◆ conversions() [1/2]

ConversionSet & clang::AmbiguousConversionSequence::conversions ( )
inline

Definition at line 486 of file Overload.h.

References Buffer.

Referenced by addConversion(), begin(), construct(), copyFrom(), destruct(), and end().

◆ conversions() [2/2]

const ConversionSet & clang::AmbiguousConversionSequence::conversions ( ) const
inline

Definition at line 490 of file Overload.h.

References Buffer.

◆ copyFrom()

void AmbiguousConversionSequence::copyFrom ( const AmbiguousConversionSequence O)

◆ destruct()

void AmbiguousConversionSequence::destruct ( )

Definition at line 701 of file SemaOverload.cpp.

References conversions().

◆ end() [1/2]

iterator clang::AmbiguousConversionSequence::end ( )
inline

Definition at line 501 of file Overload.h.

References conversions().

◆ end() [2/2]

const_iterator clang::AmbiguousConversionSequence::end ( ) const
inline

Definition at line 506 of file Overload.h.

References conversions().

◆ getFromType()

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

Definition at line 475 of file Overload.h.

References FromTypePtr, and clang::QualType::getFromOpaquePtr().

◆ getToType()

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

Definition at line 479 of file Overload.h.

References clang::QualType::getFromOpaquePtr(), and ToTypePtr.

◆ setFromType()

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

Definition at line 483 of file Overload.h.

References FromTypePtr, and clang::T.

Referenced by TryUserDefinedConversion().

◆ setToType()

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

Definition at line 484 of file Overload.h.

References clang::T, and ToTypePtr.

Referenced by TryUserDefinedConversion().

Member Data Documentation

◆ Buffer

char clang::AmbiguousConversionSequence::Buffer[sizeof(ConversionSet)]

Definition at line 473 of file Overload.h.

Referenced by conversions().

◆ FromTypePtr

void* clang::AmbiguousConversionSequence::FromTypePtr

Definition at line 471 of file Overload.h.

Referenced by copyFrom(), getFromType(), and setFromType().

◆ ToTypePtr

void* clang::AmbiguousConversionSequence::ToTypePtr

Definition at line 472 of file Overload.h.

Referenced by copyFrom(), getToType(), and setToType().


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