A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://clang.llvm.org/doxygen/structclang_1_1OverloadCandidate.html below:

clang: clang::OverloadCandidate Struct Reference

OverloadCandidate - A single candidate in an overload set (C++ 13.3). More...

#include "clang/Sema/Overload.h"

FunctionDeclFunction   Function - The actual function that this candidate represents.
  DeclAccessPair  FoundDecl   FoundDecl - The original declaration that was looked up / invented / otherwise found, together with its access.
  QualType  BuiltinParamTypes [3]   BuiltinParamTypes - Provides the parameter types of a built-in overload candidate.
  CXXConversionDeclSurrogate   Surrogate - The conversion function for which this candidate is a surrogate, but only if IsSurrogate is true.
  ConversionSequenceList  Conversions   The conversion sequences used to convert the function arguments to the function parameters.
  ConversionFixItGenerator  Fix   The FixIt hints which can be used to fix the Bad candidate.
  unsigned  Viable: 1   Viable - True to indicate that this overload candidate is viable.
  unsigned  Best: 1   Whether this candidate is the best viable function, or tied for being the best viable function.
  unsigned  IsSurrogate: 1   IsSurrogate - True to indicate that this candidate is a surrogate for a conversion to a function pointer or reference (C++ [over.call.object]).
  unsigned  IgnoreObjectArgument: 1   IgnoreObjectArgument - True to indicate that the first argument's conversion, which for this function represents the implicit object argument, should be ignored.
  unsigned  TookAddressOfOverload: 1   bool  HasMatchedPackOnParmToNonPackOnArg: 1   Have we matched any packs on the parameter side, versus any non-packs on the argument side, in a context where the opposite matching is also allowed?
  unsigned  IsADLCandidate: 1   True if the candidate was found using ADL.
  unsigned  RewriteKind: 2   Whether this is a rewritten candidate, and if so, of what kind?
  unsigned char  FailureKind   FailureKind - The reason why this candidate is not viable.
  unsigned  ExplicitCallArguments   The number of call arguments that were explicitly provided, to be used while performing partial ordering of function templates.
  union {    DeductionFailureInfo   DeductionFailure      StandardConversionSequence   FinalConversion   FinalConversion - For a conversion function (where Function is a CXXConversionDecl), the standard conversion that occurs after the call to the overload candidate to convert the result of calling the conversion function to the required type. More...
  };   

OverloadCandidate - A single candidate in an overload set (C++ 13.3).

Definition at line 872 of file Overload.h.

◆ getNumParams() unsigned clang::OverloadCandidate::getNumParams ( ) const inline ◆ getRewriteKind() ◆ hasAmbiguousConversion() bool clang::OverloadCandidate::hasAmbiguousConversion ( ) const inline

hasAmbiguousConversion - Returns whether this overload candidate requires an ambiguous conversion or not.

Definition at line 974 of file Overload.h.

References clang::C, and Conversions.

◆ isReversed() bool clang::OverloadCandidate::isReversed ( ) const inline ◆ NotValidBecauseConstraintExprHasError() bool OverloadCandidate::NotValidBecauseConstraintExprHasError ( ) const ◆ TryToFixBadConversion() ◆ OverloadCandidateSet ◆  union { ... } clang::OverloadCandidate::@242 ◆ Best

Whether this candidate is the best viable function, or tied for being the best viable function.

For an ambiguous overload resolution, indicates whether this candidate was part of the ambiguity kernel: the minimal non-empty set of viable candidates such that all elements of the ambiguity kernel are better than all viable candidates not in the ambiguity kernel.

Definition at line 912 of file Overload.h.

Referenced by clang::OverloadCandidateSet::BestViableFunction().

◆ BuiltinParamTypes QualType clang::OverloadCandidate::BuiltinParamTypes[3] ◆ Conversions

The conversion sequences used to convert the function arguments to the function parameters.

Note that these are indexed by argument, so may not match the parameter order of Function.

Definition at line 895 of file Overload.h.

Referenced by clang::Sema::AddBuiltinCandidate(), clang::Sema::AddConversionCandidate(), clang::Sema::AddMethodCandidate(), clang::Sema::AddOverloadCandidate(), clang::Sema::AddSurrogateCandidate(), CompleteNonViableCandidate(), DiagnoseBadConversion(), hasAmbiguousConversion(), clang::isBetterOverloadCandidate(), NoteAmbiguousUserConversions(), NoteBuiltinOperatorCandidate(), NoteFunctionCandidate(), clang::Sema::PerformCopyInitialization(), and TryToFixBadConversion().

◆ DeductionFailure ◆ ExplicitCallArguments unsigned clang::OverloadCandidate::ExplicitCallArguments

The number of call arguments that were explicitly provided, to be used while performing partial ordering of function templates.

Definition at line 952 of file Overload.h.

Referenced by clang::Sema::AddBuiltinCandidate(), clang::Sema::AddConversionCandidate(), clang::Sema::AddMethodCandidate(), clang::Sema::AddMethodTemplateCandidate(), clang::Sema::AddOverloadCandidate(), clang::Sema::AddSurrogateCandidate(), clang::Sema::AddTemplateConversionCandidate(), clang::Sema::AddTemplateOverloadCandidate(), getNumParams(), and clang::isBetterOverloadCandidate().

◆ FailureKind unsigned char clang::OverloadCandidate::FailureKind

FailureKind - The reason why this candidate is not viable.

Actually an OverloadFailureKind.

Definition at line 948 of file Overload.h.

Referenced by clang::Sema::AddBuiltinCandidate(), clang::Sema::AddConversionCandidate(), clang::Sema::AddMethodCandidate(), clang::Sema::AddMethodTemplateCandidate(), clang::Sema::AddOverloadCandidate(), clang::Sema::AddSurrogateCandidate(), clang::Sema::AddTemplateConversionCandidate(), clang::Sema::AddTemplateOverloadCandidate(), clang::Sema::BuildCallToObjectOfClassType(), CheckArityMismatch(), CompleteNonViableCandidate(), NoteFunctionCandidate(), NoteSurrogateCandidate(), and clang::Sema::PerformCopyInitialization().

◆ FinalConversion ◆ Fix ◆ FoundDecl

FoundDecl - The original declaration that was looked up / invented / otherwise found, together with its access.

Might be a UsingShadowDecl or a FunctionTemplateDecl.

Definition at line 882 of file Overload.h.

Referenced by clang::Sema::AddBuiltinCandidate(), clang::Sema::AddConversionCandidate(), clang::Sema::AddMethodCandidate(), clang::Sema::AddMethodTemplateCandidate(), clang::Sema::AddOverloadCandidate(), clang::Sema::AddSurrogateCandidate(), clang::Sema::AddTemplateConversionCandidate(), clang::Sema::AddTemplateOverloadCandidate(), DiagnoseArityMismatch(), DiagnoseBadConversion(), DiagnoseBadDeduction(), DiagnoseBadTarget(), clang::isBetterOverloadCandidate(), and NoteFunctionCandidate().

◆ Function

Function - The actual function that this candidate represents.

When NULL, this is a built-in candidate (C++ [over.oper]) or a surrogate for a conversion to a function pointer or reference (C++ [over.call.object]).

Definition at line 877 of file Overload.h.

Referenced by clang::Sema::AddBuiltinCandidate(), clang::Sema::AddConversionCandidate(), clang::Sema::AddMethodCandidate(), clang::Sema::AddMethodTemplateCandidate(), clang::Sema::AddOverloadCandidate(), clang::Sema::AddSurrogateCandidate(), clang::Sema::AddTemplateConversionCandidate(), clang::Sema::AddTemplateOverloadCandidate(), clang::OverloadCandidateSet::BestViableFunction(), CheckArityMismatch(), CompleteNonViableCandidate(), DiagnoseArityMismatch(), DiagnoseBadConversion(), DiagnoseBadDeduction(), DiagnoseBadTarget(), DiagnoseFailedEnableIfAttr(), DiagnoseFailedExplicitSpec(), GetLocationForCandidate(), getNumParams(), isBetterMultiversionCandidate(), clang::isBetterOverloadCandidate(), clang::OverloadCandidateSet::NoteCandidates(), NoteFunctionCandidate(), and sameFunctionParameterTypeLists().

◆ HasMatchedPackOnParmToNonPackOnArg bool clang::OverloadCandidate::HasMatchedPackOnParmToNonPackOnArg ◆ IgnoreObjectArgument unsigned clang::OverloadCandidate::IgnoreObjectArgument ◆ IsADLCandidate unsigned clang::OverloadCandidate::IsADLCandidate ◆ IsSurrogate unsigned clang::OverloadCandidate::IsSurrogate ◆ RewriteKind unsigned clang::OverloadCandidate::RewriteKind ◆ Surrogate ◆ TookAddressOfOverload unsigned clang::OverloadCandidate::TookAddressOfOverload ◆ Viable unsigned clang::OverloadCandidate::Viable

Viable - True to indicate that this overload candidate is viable.

Definition at line 902 of file Overload.h.

Referenced by clang::Sema::AddBuiltinCandidate(), clang::Sema::AddConversionCandidate(), clang::Sema::AddMethodCandidate(), clang::Sema::AddMethodTemplateCandidate(), clang::Sema::AddOverloadCandidate(), clang::Sema::AddSurrogateCandidate(), clang::Sema::AddTemplateConversionCandidate(), clang::Sema::AddTemplateOverloadCandidate(), clang::OverloadCandidateSet::BestViableFunction(), clang::Sema::BuildCallToObjectOfClassType(), CompleteNonViableCandidate(), clang::isBetterOverloadCandidate(), clang::OverloadCandidateSet::NoteCandidates(), NoteFunctionCandidate(), NoteSurrogateCandidate(), and clang::Sema::PerformCopyInitialization().

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4