Skip to content

SageInterface::declarationPreceedsDefinition

Compare declarations in structural preorder within one lexical AST. Identical declarations do not precede themselves. Both declarations must have unique traversal ownership paths to the same global or detached root.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

bool
declarationPreceedsDefinition(
    SgDeclarationStatement* nonDefiningDeclaration,
    SgDeclarationStatement* definingDeclaration);

Parameters

Name Description
nonDefiningDeclaration This class represents the concept of a declaration statement.
definingDeclaration This class represents the concept of a declaration statement.

Created with MrDocs