Skip to content

SageInterface::moveCommentsToNewStatement

Relocate comments and CPP directives from one statement to another.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
void
moveCommentsToNewStatement(
    SgStatement* sourceStatement,
    std::vector<int> const& indexList,
    SgStatement* destinationStatement,
    bool destinationStatementPreceedsSourceStatement);

Parameters

Name

Description

sourceStatement

This class represents the notion of a statement.

indexList

A standard container which offers fixed time access to individual elements in any order.

destinationStatement

This class represents the notion of a statement.

Created with MrDocs