Skip to content

ASTtools::attachComment

Attaches a string as a new C++‐style comment to the given statement.

Synopses

Declared in <src/midend/programTransformation/astOutlining/PreprocessingInfo.hh>

Attaches a string as a new C++‐style comment to the given statement.

void
attachComment(
    std::string const& comment,
    SgStatement* s);

Attaches a string as a new C++‐style comment to the given statement.

void
attachComment(
    char const* comment,
    SgStatement* s);

Created with MrDocs