clang API Documentation
#include <Overload.h>
Public Member Functions | |
void | dump () const |
Public Attributes | |
StandardConversionSequence | Before |
Represents the standard conversion that occurs before the actual user-defined conversion. | |
bool | EllipsisConversion: 1 |
bool | HadMultipleCandidates: 1 |
StandardConversionSequence | After |
FunctionDecl * | ConversionFunction |
DeclAccessPair | FoundConversionFunction |
The declaration that we found via name lookup, which might be the same as ConversionFunction or it might be a using declaration that refers to ConversionFunction . |
UserDefinedConversionSequence - Represents a user-defined conversion sequence (C++ 13.3.3.1.2).
Definition at line 236 of file Overload.h.
void UserDefinedConversionSequence::dump | ( | ) | const |
dump - Print this user-defined conversion sequence to standard error. Useful for debugging overloading issues.
Definition at line 461 of file SemaOverload.cpp.
References clang::frontend::After.
After - Represents the standard conversion that occurs after the actual user-defined conversion.
Definition at line 265 of file Overload.h.
Referenced by clang::Sema::AddSurrogateCandidate(), clang::Sema::CheckConvertedConstantExpression(), CompareImplicitConversionSequences(), DiagnoseNarrowingInInitList(), FindConversionForRefInit(), IsInitializerListConstructorConversion(), IsUserDefinedConversion(), clang::Sema::PerformImplicitConversion(), TryContextuallyConvertToObjCPointer(), and TryListConversion().
Represents the standard conversion that occurs before the actual user-defined conversion.
C++11 13.3.3.1.2p1: If the user-defined conversion is specified by a constructor (12.3.1), the initial standard conversion sequence converts the source type to the type required by the argument of the constructor. If the user-defined conversion is specified by a conversion function (12.3.2), the initial standard conversion sequence converts the source type to the implicit object parameter of the conversion function.
Definition at line 248 of file Overload.h.
Referenced by clang::Sema::AddSurrogateCandidate(), FindConversionForRefInit(), hasDeprecatedStringLiteralToCharPtrConversion(), IsInitializerListConstructorConversion(), IsUserDefinedConversion(), clang::Sema::PerformImplicitConversion(), TryListConversion(), and TryUserDefinedConversion().
ConversionFunction - The function that will perform the user-defined conversion. Null if the conversion is an aggregate initialization from an initializer list.
Definition at line 270 of file Overload.h.
Referenced by clang::Sema::AddSurrogateCandidate(), CompareImplicitConversionSequences(), FindConversionForRefInit(), IsInitializerListConstructorConversion(), IsUserDefinedConversion(), clang::Sema::PerformImplicitConversion(), TryListConversion(), and TryUserDefinedConversion().
EllipsisConversion - When this is true, it means user-defined conversion sequence starts with a ... (ellipsis) conversion, instead of a standard conversion. In this case, 'Before' field must be ignored.
Definition at line 256 of file Overload.h.
Referenced by clang::Sema::AddSurrogateCandidate(), FindConversionForRefInit(), IsUserDefinedConversion(), and clang::Sema::PerformImplicitConversion().
The declaration that we found via name lookup, which might be the same as ConversionFunction
or it might be a using declaration that refers to ConversionFunction
.
Definition at line 275 of file Overload.h.
Referenced by clang::Sema::AddSurrogateCandidate(), FindConversionForRefInit(), IsInitializerListConstructorConversion(), IsUserDefinedConversion(), and clang::Sema::PerformImplicitConversion().
HadMultipleCandidates - When this is true, it means that the conversion function was resolved from an overloaded set having size greater than 1.
Definition at line 261 of file Overload.h.
Referenced by clang::Sema::AddSurrogateCandidate(), FindConversionForRefInit(), IsInitializerListConstructorConversion(), IsUserDefinedConversion(), and clang::Sema::PerformImplicitConversion().