ΒΆTryCastResult TryStaticMemberPointerUpcast(
    clang::Sema& Self,
    clang::ExprResult& SrcExpr,
    clang::QualType SrcType,
    clang::QualType DestType,
    bool CStyle,
    clang::SourceRange OpRange,
    unsigned int& msg,
    clang::CastKind& Kind,
    clang::CXXCastPath& BasePath)

Description

TryStaticMemberPointerUpcast - Tests whether a conversion according to C++ 5.2.9p9 is valid: An rvalue of type "pointer to member of D of type cv1 T" can be converted to an rvalue of type "pointer to member of B of type cv2 T", where B is a base class of D [...].

Declared at: clang/lib/Sema/SemaCast.cpp:1711

Parameters

clang::Sema& Self
clang::ExprResult& SrcExpr
clang::QualType SrcType
clang::QualType DestType
bool CStyle
clang::SourceRange OpRange
unsigned int& msg
clang::CastKind& Kind
clang::CXXCastPath& BasePath