Skip to content

SageInterface::cutPreprocessingInfo

Cut preprocessing information from a source node and save it into a buffer. Used in combination of pastePreprocessingInfo(). The cut-paste operation is equivalent to a split movePreprocessingInfo() operation and permits the destination node to be unknown during the cut operation.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility("default")]]
void
cutPreprocessingInfo(
    SgLocatedNode* src_node,
    PreprocessingInfo::RelativePositionType pos,
    AttachedPreprocessingInfoType& save_buf);

Parameters

Name Description
src_node This class represents the notion of an expression or statement which
pos MK: Enum type to store if the directive goes before or after the corresponding line of source code

Created with MrDocs