Skip to content

SageInterface::attachComment

attachComment overloads

Synopses

Declared in <SageIII/sageInterface/sageInterface.h>

Build and attach comment, comment style is inferred from the language type of the target node if not provided

[[visibility]]
PreprocessingInfo*
attachComment(
    SgLocatedNode* target,
    std::string const& content,
    PreprocessingInfo::RelativePositionType position = PreprocessingInfo::before,
    PreprocessingInfo::DirectiveType dtype = PreprocessingInfo::CpreprocessorUnknownDeclaration);

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

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

Created with MrDocs