Class BooleanQuery#

Inheritance Relationships#

Base Type#

Class Documentation#

class BooleanQuery : public SgTopDownBottomUpProcessing<BooleanQueryInheritedAttributeType, BooleanQuerySynthesizedAttributeType>#

This class simplifies the development of queries on the AST resulting in a single boolean value.

This class used several static member function within it’s interface. Each member function takes an AST node pointer (any subtree of the AST).

Boolean Query Library Interface

Member functions called on each node.

These function return true if any part of the subtree can be evaluated to be true.

static bool isStruct(SgNode *astNode)#

does the AST contain a struct?

static bool isUnion(SgNode *astNode)#

does the AST contain a union?

static bool isContainedInSubtreeOfType(SgNode *astNode, VariantT targetNodeVariant)#

checks chain of parents from current node to root of AST for node of targetVariant.

Public Types

enum TypeOfQueryType#

Values:

enumerator UnknownListElementType#
enumerator VariableDeclaration#
enumerator Type#
enumerator FunctionDeclaration#
enumerator MemberFunctionDeclaration#
enumerator ClassDeclaration#
enumerator Argument#
enumerator Field#
enumerator UnionedField#
enumerator Struct#
enumerator ContainedInSubtreeOfType#
enumerator END_OF_BOOLEAN_QUERY_TYPE#