ROSE  0.11.96.11
Public Member Functions | List of all members
AttachAllPreprocessingInfoTreeTrav Class Reference

Description

Definition at line 27 of file attach_all_info.h.

Inheritance diagram for AttachAllPreprocessingInfoTreeTrav:
Inheritance graph
[legend]
Collaboration diagram for AttachAllPreprocessingInfoTreeTrav:
Collaboration graph
[legend]

Public Member Functions

 AttachAllPreprocessingInfoTreeTrav (SgFile *sagep)
 
AttachPreprocessingInfoTreeTraversalInheritedAttrribute evaluateInheritedAttribute (SgNode *n, AttachPreprocessingInfoTreeTraversalInheritedAttrribute inh)
 pure virtual function which must be implemented to compute the inherited attribute at a node
 
AttachPreprocessingInfoTreeTraversalSynthesizedAttribute evaluateSynthesizedAttribute (SgNode *n, AttachPreprocessingInfoTreeTraversalInheritedAttrribute inh, SubTreeSynthesizedAttributes st)
 pure virtual function which must be implemented to compute the synthesized attribute at a node. More...
 
void display (const std::string &label) const
 
- Public Member Functions inherited from AttachPreprocessingInfoTreeTrav
 AttachPreprocessingInfoTreeTrav (std::map< std::string, ROSEAttributesList * > *attrMap)
 
 AttachPreprocessingInfoTreeTrav (SgSourceFile *file, ROSEAttributesList *listOfAttributes)
 
void setupPointerToPreviousNode (SgLocatedNode *currentLocNodePtr)
 
void iterateOverListAndInsertPreviouslyUninsertedElementsAppearingBeforeLineNumber (SgLocatedNode *locatedNode, int lineNumber, PreprocessingInfo::RelativePositionType location, bool reset_start_index, ROSEAttributesList *currentListOfAttributes)
 
void handleBracedScopes (SgLocatedNode *previousLocatedNode, SgStatement *bracedScope, int lineOfClosingBrace, bool reset_start_index, ROSEAttributesList *currentListOfAttributes)
 
AttachPreprocessingInfoTreeTraversalInheritedAttrribute evaluateInheritedAttribute (SgNode *n, AttachPreprocessingInfoTreeTraversalInheritedAttrribute inh)
 pure virtual function which must be implemented to compute the inherited attribute at a node
 
AttachPreprocessingInfoTreeTraversalSynthesizedAttribute evaluateSynthesizedAttribute (SgNode *n, AttachPreprocessingInfoTreeTraversalInheritedAttrribute inh, SubTreeSynthesizedAttributes st)
 pure virtual function which must be implemented to compute the synthesized attribute at a node. More...
 
void display (const std::string &label) const
 
ROSEAttributesListgetListOfAttributes (int currentFileNameId)
 
void setMapOfAttributes ()
 
- Public Member Functions inherited from AstTopDownBottomUpProcessing< AttachPreprocessingInfoTreeTraversalInheritedAttrribute, AttachPreprocessingInfoTreeTraversalSynthesizedAttribute >
AttachPreprocessingInfoTreeTraversalSynthesizedAttribute traverse (SgNode *node, AttachPreprocessingInfoTreeTraversalInheritedAttrribute inheritedValue)
 evaluates attributes on the entire AST
 
AttachPreprocessingInfoTreeTraversalSynthesizedAttribute traverseWithinFile (SgNode *node, AttachPreprocessingInfoTreeTraversalInheritedAttrribute inheritedValue)
 evaluates attributes only at nodes which represent the same file as where the evaluation was started
 
- Public Member Functions inherited from SgTreeTraversal< AttachPreprocessingInfoTreeTraversalInheritedAttrribute, AttachPreprocessingInfoTreeTraversalSynthesizedAttribute >
AttachPreprocessingInfoTreeTraversalSynthesizedAttribute traverse (SgNode *basenode, AttachPreprocessingInfoTreeTraversalInheritedAttrribute inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
AttachPreprocessingInfoTreeTraversalSynthesizedAttribute traverseWithinFile (SgNode *basenode, AttachPreprocessingInfoTreeTraversalInheritedAttrribute inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
void traverseInputFiles (SgProject *projectNode, AttachPreprocessingInfoTreeTraversalInheritedAttrribute inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
 SgTreeTraversal (const SgTreeTraversal &)
 
const SgTreeTraversaloperator= (const SgTreeTraversal &)
 

Additional Inherited Members

- Public Types inherited from AstTopDownBottomUpProcessing< AttachPreprocessingInfoTreeTraversalInheritedAttrribute, AttachPreprocessingInfoTreeTraversalSynthesizedAttribute >
typedef SgTreeTraversal< AttachPreprocessingInfoTreeTraversalInheritedAttrribute, AttachPreprocessingInfoTreeTraversalSynthesizedAttribute >::SynthesizedAttributesList SynthesizedAttributesList
 
typedef SynthesizedAttributesList SubTreeSynthesizedAttributes
 
- Public Types inherited from SgTreeTraversal< AttachPreprocessingInfoTreeTraversalInheritedAttrribute, AttachPreprocessingInfoTreeTraversalSynthesizedAttribute >
typedef StackFrameVector< AttachPreprocessingInfoTreeTraversalSynthesizedAttributeSynthesizedAttributesList
 
- Static Public Member Functions inherited from AttachPreprocessingInfoTreeTrav
static ROSEAttributesListbuildCommentAndCppDirectiveList (bool use_Wave, SgSourceFile *sourceFile, std::string currentFilename, std::string new_filename)
 
- Protected Types inherited from SgTreeTraversal< AttachPreprocessingInfoTreeTraversalInheritedAttrribute, AttachPreprocessingInfoTreeTraversalSynthesizedAttribute >
typedef AstSuccessorsSelectors::SuccessorsContainer SuccessorsContainer
 
typedef SuccessorsContainer & SuccessorsContainerRef
 
- Protected Member Functions inherited from AstTopDownBottomUpProcessing< AttachPreprocessingInfoTreeTraversalInheritedAttrribute, AttachPreprocessingInfoTreeTraversalSynthesizedAttribute >
virtual void atTraversalStart ()
 Function called at the start of the traversal, before any node is visited; override if necessary, the default implementation is a no-op.
 
virtual void atTraversalEnd ()
 
- Protected Member Functions inherited from SgTreeTraversal< AttachPreprocessingInfoTreeTraversalInheritedAttrribute, AttachPreprocessingInfoTreeTraversalSynthesizedAttribute >
virtual void setNodeSuccessors (SgNode *node, SuccessorsContainer &succContainer)
 
virtual AttachPreprocessingInfoTreeTraversalSynthesizedAttribute defaultSynthesizedAttribute (AttachPreprocessingInfoTreeTraversalInheritedAttrribute inh)
 
void set_useDefaultIndexBasedTraversal (bool)
 
- Protected Attributes inherited from AttachPreprocessingInfoTreeTrav
SgLocatedNodepreviousLocatedNode
 accumulator attribute
 
ROSEAttributesListcurrentListOfAttributes
 
SgSourceFilesourceFile
 current source file name id (only handle strings from current file)
 
int target_source_file_id
 
int source_file_id
 
bool use_Wave
 AS(011306) Map of ROSEAttributesLists mapped to filename from Wave. More...
 
int start_index
 Map of filenames to list of attributes as found by WAVE.
More...
 
bool processAllIncludeFiles
 

Member Function Documentation

◆ evaluateSynthesizedAttribute()

AttachPreprocessingInfoTreeTraversalSynthesizedAttribute AttachAllPreprocessingInfoTreeTrav::evaluateSynthesizedAttribute ( SgNode ,
AttachPreprocessingInfoTreeTraversalInheritedAttrribute  ,
SubTreeSynthesizedAttributes   
)
virtual

pure virtual function which must be implemented to compute the synthesized attribute at a node.

The list of synthesized attributes consists of the synthesized attributes computed at the children node of the current node. The inherited attribute value is computed by evaluateInheritedAttribute at the same node and simply passed to this function. Use the typedef SynthesizedAttributeList as type for the synthesized attributes list.

Implements AstTopDownBottomUpProcessing< AttachPreprocessingInfoTreeTraversalInheritedAttrribute, AttachPreprocessingInfoTreeTraversalSynthesizedAttribute >.


The documentation for this class was generated from the following file: