struct OverloadCandidateSet::OperatorRewriteInfo
Declaration
struct OverloadCandidateSet::OperatorRewriteInfo { /* full declaration omitted */ };
Description
Information about operator rewrites to consider when adding operator functions to a candidate set.
Declared at: clang/include/clang/Sema/Overload.h:965
Member Variables
- public clang::OverloadedOperatorKind OriginalOperator
- The original operator as written in the source.
- public bool AllowRewrittenCandidates
- Whether we should include rewritten candidates in the overload set.
Method Overview
- public OperatorRewriteInfo()
- public OperatorRewriteInfo(clang::OverloadedOperatorKind Op, bool AllowRewritten)
- public clang::OverloadCandidateRewriteKind getRewriteKind(const clang::FunctionDecl * FD, clang::OverloadCandidateParamOrder PO)
- public bool isAcceptableCandidate(const clang::FunctionDecl * FD)
- public bool isReversible()
- public bool isRewrittenOperator(const clang::FunctionDecl * FD)
- public bool shouldAddReversed(clang::OverloadedOperatorKind Op)
- public bool shouldAddReversed(clang::ASTContext & Ctx, const clang::FunctionDecl * FD)
Methods
¶OperatorRewriteInfo()
OperatorRewriteInfo()
Declared at: clang/include/clang/Sema/Overload.h:966
¶OperatorRewriteInfo(
clang::OverloadedOperatorKind Op,
bool AllowRewritten)
OperatorRewriteInfo(
clang::OverloadedOperatorKind Op,
bool AllowRewritten)
Declared at: clang/include/clang/Sema/Overload.h:968
Parameters
- clang::OverloadedOperatorKind Op
- bool AllowRewritten
¶clang::OverloadCandidateRewriteKind
getRewriteKind(
const clang::FunctionDecl* FD,
clang::OverloadCandidateParamOrder PO)
clang::OverloadCandidateRewriteKind
getRewriteKind(
const clang::FunctionDecl* FD,
clang::OverloadCandidateParamOrder PO)
Description
Determine the kind of rewrite that should be performed for this candidate.
Declared at: clang/include/clang/Sema/Overload.h:1000
Parameters
- const clang::FunctionDecl* FD
- clang::OverloadCandidateParamOrder PO
¶bool isAcceptableCandidate(
const clang::FunctionDecl* FD)
bool isAcceptableCandidate(
const clang::FunctionDecl* FD)
Declared at: clang/include/clang/Sema/Overload.h:983
Parameters
- const clang::FunctionDecl* FD
¶bool isReversible()
bool isReversible()
Description
Determines whether this operator could be implemented by a function with reversed parameter order.
Declared at: clang/include/clang/Sema/Overload.h:1011
¶bool isRewrittenOperator(
const clang::FunctionDecl* FD)
bool isRewrittenOperator(
const clang::FunctionDecl* FD)
Description
Would use of this function result in a rewrite using a different operator?
Declared at: clang/include/clang/Sema/Overload.h:978
Parameters
- const clang::FunctionDecl* FD
¶bool shouldAddReversed(
clang::OverloadedOperatorKind Op)
bool shouldAddReversed(
clang::OverloadedOperatorKind Op)
Description
Determine whether we should consider looking for and adding reversed candidates for operator Op.
Declared at: clang/include/clang/Sema/Overload.h:1019
Parameters
- clang::OverloadedOperatorKind Op
¶bool shouldAddReversed(
clang::ASTContext& Ctx,
const clang::FunctionDecl* FD)
bool shouldAddReversed(
clang::ASTContext& Ctx,
const clang::FunctionDecl* FD)
Description
Determine whether we should add a rewritten candidate for \p FD with reversed parameter order.
Declared at: clang/include/clang/Sema/Overload.h:1023
Parameters
- clang::ASTContext& Ctx
- const clang::FunctionDecl* FD