Skip to content

SageBuilder::buildCastExp

buildCastExp overloads

Synopses

Declared in <SageIII/sageInterface/sageBuilder.h>

Concise operation‐specific forms for transformation‐authored C‐style or explicitly selected source surfaces. These are overloads, not defaulted parameters; both operands remain mandatory and undergo exact classification.

[[visibility]]
SgCastExp*
buildCastExp(
    SgExpression* operand_i,
    SgType* expression_type);
[[visibility]]
SgCastExp*
buildCastExp(
    SgExpression* operand_i,
    SgType* expression_type,
    SgCastExp::cast_type_enum cast_type);

Build a fully checked type conversion. All semantic fields are mandatory.

[[visibility]]
SgCastExp*
buildCastExp(
    SgExpression* operand_i,
    SgType* expression_type,
    SgCastExp::cast_type_enum cast_type,
    SgCastExp::semantic_conversion_kind_enum semantic_kind,
    SgCastExp::value_category_enum value_category,
    SgTypePtrList const& conversion_base_path);

Created with MrDocs