SageBuilder::buildComment
Build and attach a comment, comment style is inferred from the language type of the target node if not provided. It is indeed a wrapper of SageInterface::attachComment().
Synopsis
Declared in <SageIII/sageInterface/sageBuilder.h>
[[visibility]]
PreprocessingInfo*
buildComment(
SgLocatedNode* target,
std::string const& content,
PreprocessingInfo::RelativePositionType position = PreprocessingInfo::before,
PreprocessingInfo::DirectiveType dtype = PreprocessingInfo::CpreprocessorUnknownDeclaration);
Return Value
For preprocessing information including source comments, include , if, define, etc
Parameters
Name |
Description |
target |
This class represents the notion of an expression or statement which |
position |
MK: Enum type to store if the directive goes before or after the corresponding line of source code |
Created with MrDocs