Class FixupStorageAccessOfForwardTemplateDeclarations#

Inheritance Relationships#

Base Type#

Class Documentation#

class FixupStorageAccessOfForwardTemplateDeclarations : public SgSimpleProcessing#

Fixup the storage access of all compiler-generated forward declarations (non-defining declarations) to match that of the defining declaration.

This fix is required because EDG builds forward declarations for template instantations but does not mark the forward declaration as static when using the instantiation mode “local” (”–instantiation local”). The defining declaration is correctly marked as static. This fixup only applies to compiler generated forward declarations (placed after the template declaration) and having a valid defining declaration.

Public Functions

virtual void visit(SgNode *node)#

Required traversal function.