Skip to content

NodeQuery

Functions

Name

Description

generateListOfTypes
std::vector<SgNode*> generateListOfTypes(SgNode* astNode);

getFunction
std::function<std::vector<SgNode*>(SgNode*)> getFunction(TypeOfQueryTypeOneParameter oneParam);

getFunction overloads

mergeList
void mergeList(std::vector<SgNode*>& nodeList, std::vector<SgNode*> const& localList);

printNodeList
void printNodeList(std::vector<SgNode*> const& localList);

pushNewNode
void pushNewNode(NodeQuerySynthesizedAttributeType* nodeList, VariantVector const& targetVariantVector, SgNode* astNode);

queryMemoryPool
NodeQuerySynthesizedAttributeType queryMemoryPool(VariantVector& targetVariantVector);

queryMemoryPool overloads

queryNodeAnonymousTypedef
NodeQuerySynthesizedAttributeType queryNodeAnonymousTypedef(SgNode* node);

queryNodeAnonymousTypedefClassDeclaration
NodeQuerySynthesizedAttributeType queryNodeAnonymousTypedefClassDeclaration(SgNode* node);

queryNodeClassDeclarationFromName
NodeQuerySynthesizedAttributeType queryNodeClassDeclarationFromName(SgNode* node, SgNode* nameNode);

queryNodeClassDeclarationsFromTypeName
NodeQuerySynthesizedAttributeType queryNodeClassDeclarationsFromTypeName(SgNode* node, SgNode* nameNode);

queryNodeList
NodeQuerySynthesizedAttributeType queryNodeList(NodeQuerySynthesizedAttributeType, VariantT targetVariant);

queryNodePragmaDeclarationFromName
std::vector<SgNode*> queryNodePragmaDeclarationFromName(SgNode* node, SgNode* nameNode);

queryNodeVariableDeclarationFromName
std::vector<SgNode*> queryNodeVariableDeclarationFromName(SgNode* astNode, SgNode* nameNode);

querySolverArguments
NodeQuerySynthesizedAttributeType querySolverArguments(SgNode* astNode);

querySolverClassDeclarations
NodeQuerySynthesizedAttributeType querySolverClassDeclarations(SgNode* astNode);

querySolverClassFields
NodeQuerySynthesizedAttributeType querySolverClassFields(SgNode* astNode);

querySolverFunctionDeclarationFromDefinition
NodeQuerySynthesizedAttributeType querySolverFunctionDeclarationFromDefinition(SgNode* astNode, SgNode* functionDefinition);

querySolverFunctionDeclarations
NodeQuerySynthesizedAttributeType querySolverFunctionDeclarations(SgNode* astNode);

querySolverGrammarElementFromVariant
NodeQuerySynthesizedAttributeType querySolverGrammarElementFromVariant(SgNode* astNode, VariantT targetVariant);

querySolverGrammarElementFromVariantVector
void* querySolverGrammarElementFromVariantVector(SgNode* astNode, VariantVector const& targetVariantVector, NodeQuerySynthesizedAttributeType* returnNodeList);

querySolverMemberFunctionDeclarations
NodeQuerySynthesizedAttributeType querySolverMemberFunctionDeclarations(SgNode* astNode);

querySolverStructDeclarations
NodeQuerySynthesizedAttributeType querySolverStructDeclarations(SgNode* astNode);

querySolverStructDefinitions
NodeQuerySynthesizedAttributeType querySolverStructDefinitions(SgNode* astNode);

querySolverStructFields
NodeQuerySynthesizedAttributeType querySolverStructFields(SgNode* astNode);

querySolverTypedefDeclarations
NodeQuerySynthesizedAttributeType querySolverTypedefDeclarations(SgNode* astNode);

querySolverUnionDeclarations
NodeQuerySynthesizedAttributeType querySolverUnionDeclarations(SgNode* astNode);

querySolverUnionFields
NodeQuerySynthesizedAttributeType querySolverUnionFields(SgNode* astNode);

querySolverVariableDeclarations
NodeQuerySynthesizedAttributeType querySolverVariableDeclarations(SgNode* astNode);

querySolverVariableTypes
NodeQuerySynthesizedAttributeType querySolverVariableTypes(SgNode* astNode);

querySubTree
NodeQuerySynthesizedAttributeType querySubTree(SgNode* subTree, TypeOfQueryTypeOneParameter elementReturnType, AstQueryNamespace::QueryDepth defineQueryType = AstQueryNamespace::AllNodes);

querySubTree overloads

Using Namespace Directives

Created with MrDocs