Skip to content

PreprocessingInfo

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

Synopsis

Declared in <SageIII/rose_attributes_list.h>

class [[visibility("default")]] PreprocessingInfo;

Enums

Name Description
DirectiveType
FortranSourceRole
OutputPlacementType
RelativePositionType MK: Enum type to store if the directive goes before or after the corresponding line of source code

Member Functions

Name Description
PreprocessingInfo
PreprocessingInfo(); [constructor]
Constructors
~PreprocessingInfo
~PreprocessingInfo(); [destructor]
Destructor
display
void display(std::string const& label) const;
getAttachedOwner
SgLocatedNode* getAttachedOwner() const;
getColumnNumber
int getColumnNumber() const;
getColumnNumberOfEndOfString
int getColumnNumberOfEndOfString() const;
getFilename
std::string getFilename() const;
getFortranSourceRole
FortranSourceRole getFortranSourceRole() const;
getLineNumber
int getLineNumber() const;
getMacroName
std::string getMacroName();
getNumberOfLines
int getNumberOfLines() const;
getOutputPlacement
OutputPlacementType getOutputPlacement() const;
getRelativePosition
RelativePositionType getRelativePosition() const;
getString
std::string getString() const;
getStringLength
int getStringLength() const;
getTypeOfDirective
DirectiveType getTypeOfDirective() const;
get_file_info
Sg_File_Info* get_file_info() const;
get_filenameForCompilerGeneratedLinemarker
std::string get_filenameForCompilerGeneratedLinemarker();
get_lineNumberForCompilerGeneratedLinemarker
int get_lineNumberForCompilerGeneratedLinemarker();
get_optionalflagsForCompilerGeneratedLinemarker
std::string get_optionalflagsForCompilerGeneratedLinemarker();
has_file_info
bool has_file_info() const;
isTransformation
bool isTransformation() const;
setAsTransformation
void setAsTransformation();
setFortranSourceRole
void setFortranSourceRole(FortranSourceRole role);
setOutputPlacement
void setOutputPlacement(OutputPlacementType placement);
setRelativePosition
void setRelativePosition(RelativePositionType relPos);
setString
void setString(std::string const& s);
setTypeOfDirective
void setTypeOfDirective(DirectiveType);
set_file_info
void set_file_info(Sg_File_Info* info);
set_filenameForCompilerGeneratedLinemarker
void set_filenameForCompilerGeneratedLinemarker(std::string x);
set_lineNumberForCompilerGeneratedLinemarker
void set_lineNumberForCompilerGeneratedLinemarker(int x);
set_optionalflagsForCompilerGeneratedLinemarker
void set_optionalflagsForCompilerGeneratedLinemarker(std::string x);
unsetAsTransformation
void unsetAsTransformation();

Static Member Functions

Name
directiveTypeName
static std::string directiveTypeName(DirectiveType const& directive);
relativePositionName
static std::string relativePositionName(RelativePositionType const& position);

Private Member Functions

Name
changeAttachedOutputPlacement
void changeAttachedOutputPlacement( SgLocatedNode* owner, OutputPlacementType placement);
changeAttachedPosition
void changeAttachedPosition( SgLocatedNode* owner, RelativePositionType position);
claimAttachedOwner
void claimAttachedOwner(SgLocatedNode* owner);
releaseAttachedOwner
void releaseAttachedOwner(SgLocatedNode* owner);

Private Data Members

Name
attachedOwner
file_info
filenameForCompilerGeneratedLinemarker
fortranSourceRole
internalString
lineNumberForCompilerGeneratedLinemarker
numberOfLines
optionalflagsForCompilerGeneratedLinemarker
outputPlacement
p_isTransformation
relativePosition
whatSortOfDirective

Friends

Name Description
SgLocatedNode This class represents the notion of an expression or statement which

Created with MrDocs