Program Listing for File fixupSelfReferentialMacros.h

Program Listing for File fixupSelfReferentialMacros.h#

Return to documentation for file (src/frontend/SageIII/astPostProcessing/fixupSelfReferentialMacros.h)

// This AST postprocessing fixes some known self referential macros
// in common header files.  These are header files that are new to
// being seen by ROSE and a part of new applications being processed.

#ifndef FIXUP_SELF_REFERENTIAL_MACROS_H
#define FIXUP_SELF_REFERENTIAL_MACROS_H

// DQ (10/5/2012):
void
fixupSelfReferentialMacrosInAST (SgNode* node);


// DQ (3/11/2006):
class FixupSelfReferentialMacrosInAST : public AstSimpleProcessing
   {
  // This class uses a traversal to test the values of the definingDeclaration and
  // firstNondefiningDeclaration pointers in each SgDeclarationStatement.  See code for
  // details, since both of these pointers are not always set.

     public:
          void visit ( SgNode* node );
   };

// endif for FIXUP_SELF_REFERENTIAL_MACROS_H
#endif