Skip to content

SageBuilder::buildConditionalExp

Build a conditional expression ?:

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

[[visibility("default")]]
SgConditionalExp*
buildConditionalExp(
    SgExpression* test,
    SgExpression* a,
    SgExpression* b,
    SgType* result_type);

Return Value

This class represents the concept of a C trinary conditional expression (e.g. "test ? true : false")

Parameters

Name Description
test This class represents the notion of an expression. Expressions
a This class represents the notion of an expression. Expressions
b This class represents the notion of an expression. Expressions
result_type This class represents the base class for all types.

Created with MrDocs