clang
9.0.0
|
UserDefinedConversionSequence - Represents a user-defined conversion sequence (C++ 13.3.3.1.2). More...
#include "clang/Sema/Overload.h"
Public Member Functions | |
void | dump () const |
dump - Print this user-defined conversion sequence to standard error. More... | |
Public Attributes | |
StandardConversionSequence | Before |
Represents the standard conversion that occurs before the actual user-defined conversion. More... | |
bool | EllipsisConversion: 1 |
EllipsisConversion - When this is true, it means user-defined conversion sequence starts with a ... More... | |
bool | HadMultipleCandidates: 1 |
HadMultipleCandidates - When this is true, it means that the conversion function was resolved from an overloaded set having size greater than 1. More... | |
StandardConversionSequence | After |
After - Represents the standard conversion that occurs after the actual user-defined conversion. More... | |
FunctionDecl * | ConversionFunction |
ConversionFunction - The function that will perform the user-defined conversion. More... | |
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 . More... | |
UserDefinedConversionSequence - Represents a user-defined conversion sequence (C++ 13.3.3.1.2).
Definition at line 343 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 506 of file SemaOverload.cpp.
References clang::frontend::After.
StandardConversionSequence clang::UserDefinedConversionSequence::After |
After - Represents the standard conversion that occurs after the actual user-defined conversion.
Definition at line 372 of file Overload.h.
Referenced by CheckConvertedConstantExpression(), CompareImplicitConversionSequences(), DiagnoseNarrowingInInitList(), FindConversionForRefInit(), IsInitializerListConstructorConversion(), IsUserDefinedConversion(), clang::Sema::PerformImplicitConversion(), TryContextuallyConvertToObjCPointer(), and TryListConversion().
StandardConversionSequence clang::UserDefinedConversionSequence::Before |
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 355 of file Overload.h.
Referenced by FindConversionForRefInit(), hasDeprecatedStringLiteralToCharPtrConversion(), IsInitializerListConstructorConversion(), IsUserDefinedConversion(), clang::Sema::PerformImplicitConversion(), and TryListConversion().
FunctionDecl* clang::UserDefinedConversionSequence::ConversionFunction |
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 377 of file Overload.h.
Referenced by CompareImplicitConversionSequences(), FindConversionForRefInit(), IsInitializerListConstructorConversion(), IsUserDefinedConversion(), clang::Sema::PerformImplicitConversion(), TryListConversion(), and TryUserDefinedConversion().
bool clang::UserDefinedConversionSequence::EllipsisConversion |
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 363 of file Overload.h.
Referenced by FindConversionForRefInit(), IsUserDefinedConversion(), and clang::Sema::PerformImplicitConversion().
DeclAccessPair clang::UserDefinedConversionSequence::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
.
Definition at line 382 of file Overload.h.
Referenced by FindConversionForRefInit(), IsInitializerListConstructorConversion(), IsUserDefinedConversion(), clang::Sema::PerformImplicitConversion(), and TryUserDefinedConversion().
bool clang::UserDefinedConversionSequence::HadMultipleCandidates |
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 368 of file Overload.h.
Referenced by FindConversionForRefInit(), IsInitializerListConstructorConversion(), IsUserDefinedConversion(), and clang::Sema::PerformImplicitConversion().