SageInterface::movePreprocessingInfo
Move preprocessing information of stmt_src to stmt_dst, Only move preprocessing information from the specified sourceārelative position to a specified target position, otherwise move all preprocessing information with position information intact. The preprocessing information is appended to the existing preprocessing information list of the target node by default. Prepending is used if usePreprend is set to true. Optionally, the relative position can be adjust after the moving using dst_position.
Synopsis
Declared in <SageIII/sageInterface/sageInterface.h>
[[visibility]]
void
movePreprocessingInfo(
SgStatement* stmt_src,
SgStatement* stmt_dst,
PreprocessingInfo::RelativePositionType src_position = PreprocessingInfo::undef,
PreprocessingInfo::RelativePositionType dst_position = PreprocessingInfo::undef,
bool usePrepend = false);
Parameters
Name |
Description |
stmt_src |
This class represents the notion of a statement. |
stmt_dst |
This class represents the notion of a statement. |
src_position |
MK: Enum type to store if the directive goes before or after the corresponding line of source code |
dst_position |
MK: Enum type to store if the directive goes before or after the corresponding line of source code |
Created with MrDocs