Skip to content

ClangToSageTranslator::applySourceRangeWithTrailingSemicolon

Apply a source range to a ROSE node, extending the range to include a trailing semicolon when present. This is used when Clang provides an expression in statement position and ROSE must build a wrapper SgExprStatement.

Synopsis

Declared in <CxxFrontend/Clang/clang‐frontend‐private.hpp>

void
applySourceRangeWithTrailingSemicolon(
    SgNode* rose_node,
    clang::Stmt const* clang_stmt);

Parameters

Name

Description

rose_node

This class represents the base class for all IR nodes within Sage III.

Created with MrDocs