Skip to content

SageInterface::attachComment

Build and attach comment onto the global scope of a source file

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

PreprocessingInfo*
attachComment(
    SgSourceFile* source_file,
    std::string const& content,
    PreprocessingInfo::DirectiveType directive_type = PreprocessingInfo::C_StyleComment,
    PreprocessingInfo::RelativePositionType position = PreprocessingInfo::before);

Return Value

For preprocessing information including source comments, include , if, define, etc

Parameters

Name

Description

position

MK: Enum type to store if the directive goes before or after the corresponding line of source code

Created with MrDocs