ROSE 0.11.145.192
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
AttachPreprocessingInfoTreeTrav Class Reference

Description

Definition at line 86 of file attachPreprocessingInfoTraversal.h.

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

Public Member Functions

 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)
 
AttachPreprocessingInfoTreeTraversalSynthesizedAttribute evaluateSynthesizedAttribute (SgNode *n, AttachPreprocessingInfoTreeTraversalInheritedAttrribute inh, SubTreeSynthesizedAttributes st)
 
void display (const std::string &label) const
 
ROSEAttributesListgetListOfAttributes (int currentFileNameId)
 
void setMapOfAttributes ()
 
- Public Member Functions inherited from AstTopDownBottomUpProcessing< InheritedAttributeType, SynthesizedAttributeType >
SynthesizedAttributeType traverse (SgNode *node, InheritedAttributeType inheritedValue)
 evaluates attributes on the entire AST
 
SynthesizedAttributeType traverseWithinFile (SgNode *node, InheritedAttributeType inheritedValue)
 evaluates attributes only at nodes which represent the same file as where the evaluation was started
 
- Public Member Functions inherited from SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >
SynthesizedAttributeType traverse (SgNode *basenode, InheritedAttributeType inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
SynthesizedAttributeType traverseWithinFile (SgNode *basenode, InheritedAttributeType inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
void traverseInputFiles (SgProject *projectNode, InheritedAttributeType inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
 SgTreeTraversal (const SgTreeTraversal &)
 
const SgTreeTraversaloperator= (const SgTreeTraversal &)
 

Static Public Member Functions

static ROSEAttributesListbuildCommentAndCppDirectiveList (bool use_Wave, SgSourceFile *sourceFile, std::string currentFilename, std::string new_filename)
 

Protected Attributes

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.
 
int start_index
 Map of filenames to list of attributes as found by WAVE.

 
bool processAllIncludeFiles
 

Additional Inherited Members

- Public Types inherited from AstTopDownBottomUpProcessing< InheritedAttributeType, SynthesizedAttributeType >
typedef SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >::SynthesizedAttributesList SynthesizedAttributesList
 
typedef SynthesizedAttributesList SubTreeSynthesizedAttributes
 
- Public Types inherited from SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >
typedef StackFrameVector< SynthesizedAttributeType > SynthesizedAttributesList
 
- Protected Types inherited from SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >
typedef AstSuccessorsSelectors::SuccessorsContainer SuccessorsContainer
 
typedef SuccessorsContainer & SuccessorsContainerRef
 
- Protected Member Functions inherited from AstTopDownBottomUpProcessing< InheritedAttributeType, SynthesizedAttributeType >
virtual InheritedAttributeType evaluateInheritedAttribute (SgNode *astNode, InheritedAttributeType inheritedValue)=0
 pure virtual function which must be implemented to compute the inherited attribute at a node
 
virtual SynthesizedAttributeType evaluateSynthesizedAttribute (SgNode *, InheritedAttributeType, SynthesizedAttributesList)=0
 pure virtual function which must be implemented to compute the synthesized attribute at a node.
 
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< InheritedAttributeType, SynthesizedAttributeType >
virtual void setNodeSuccessors (SgNode *node, SuccessorsContainer &succContainer)
 
virtual SynthesizedAttributeType defaultSynthesizedAttribute (InheritedAttributeType inh)
 
void set_useDefaultIndexBasedTraversal (bool)
 

Member Data Documentation

◆ previousLocatedNode

SgLocatedNode* AttachPreprocessingInfoTreeTrav::previousLocatedNode
protected

accumulator attribute

Definition at line 103 of file attachPreprocessingInfoTraversal.h.

◆ currentListOfAttributes

ROSEAttributesList* AttachPreprocessingInfoTreeTrav::currentListOfAttributes
protected

Definition at line 112 of file attachPreprocessingInfoTraversal.h.

◆ sourceFile

SgSourceFile* AttachPreprocessingInfoTreeTrav::sourceFile
protected

current source file name id (only handle strings from current file)

Definition at line 124 of file attachPreprocessingInfoTraversal.h.

◆ target_source_file_id

int AttachPreprocessingInfoTreeTrav::target_source_file_id
protected

Definition at line 127 of file attachPreprocessingInfoTraversal.h.

◆ source_file_id

int AttachPreprocessingInfoTreeTrav::source_file_id
protected

Definition at line 130 of file attachPreprocessingInfoTraversal.h.

◆ use_Wave

bool AttachPreprocessingInfoTreeTrav::use_Wave
protected

AS(011306) Map of ROSEAttributesLists mapped to filename from Wave.

Use_Wave == true specifies if a wave preprocessor is used

Definition at line 138 of file attachPreprocessingInfoTraversal.h.

◆ start_index

int AttachPreprocessingInfoTreeTrav::start_index
protected

Map of filenames to list of attributes as found by WAVE.

AS(092107) Optimization variable to avoid n^2 complexity in iterateOverListAndInsertPreviouslyUninsertedElementsAppearingBeforeLineNumber()

Definition at line 151 of file attachPreprocessingInfoTraversal.h.

◆ processAllIncludeFiles

bool AttachPreprocessingInfoTreeTrav::processAllIncludeFiles
protected

Definition at line 155 of file attachPreprocessingInfoTraversal.h.


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