Skip to content

SageInterface::isTemplateInstantiationFromTemplateDeclarationSatisfyingFilter

This function detects template instantiations that are relevant when filters are used.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

template<class T>
bool
isTemplateInstantiationFromTemplateDeclarationSatisfyingFilter(
    SgFunctionDeclaration* function,
    T* filter);

Description

legacy frontend normalizes some in‐class template functions and member functions to be redefined outside of a class. this causes the associated template instantiations to be declared outside of the class, and to be marked as compiler generated (since the compiler generated form outside of the class declaration). ROSE captures the function definitions, but in the new location (defined outside of the class declaration). This can confuse some simple tests for template instantiations that are a part of definitions in a file, thus we have this function to detect this specific normalization.

Parameters

Name

Description

function

This class represents the concept of a function declaration statement.

Created with MrDocs