Skip to content

ResetTemplateNames

Sets names of template classes.

Synopsis

Declared in <SageIII/astPostProcessing/resetTemplateNames.h>

Base Classes

Name

Description

SgSimpleProcessing

Member Functions

Name

Description

resetTemplateNamesInAllScopes

Function to support reset of types required for qualified names

visit [virtual]

Required traversal function

visitType

Function to support traversal of types (where islands can hide)

Description

This function sets the names of template class instatiations to be of the form "ABC<int>" instead of an internal form such as "ABC___L8". In each case the old names are replaced with the new names (overwritten). The unparsed source code requires the new names, which the old names would only make since if ALL header files were to be unparsed.

This function calls the qualified name mechanism within Sage III
  and requires all parent pointers to be set prior to being called.  Thus this
  traversal MUST occur AFTER the post processing traversal to set the parents.
  It the parent processing could be included (merged into the legacy
  frontend/Sage III connection then it still might be that this traversal would
  have to be called within a post processing phase (because of the complexity
  of C and C++ some parents might not be set or known).

Created with MrDocs