Skip to content

Unparse_MOD_SAGE

Synopsis

Declared in <src/backend/unparser/languageIndependenceSupport/modified_sage.h>

class Unparse_MOD_SAGE;

Enums

Name
AlignmentPosition

Member Functions

Name Description
Unparse_MOD_SAGE
Unparse_MOD_SAGE(Unparser* unp); [constructor]
Construct from Unparser
~Unparse_MOD_SAGE
virtual ~Unparse_MOD_SAGE(); [destructor] [virtual]
Destructor
curprint
void curprint(std::string str);
curprint_newline
void curprint_newline();
getActiveExternLinkageBraceLanguage
std::string getActiveExternLinkageBraceLanguage() const;
isBinaryArithmeticOperator
bool isBinaryArithmeticOperator(SgExpression* expr);
isBinaryBracketOperator
bool isBinaryBracketOperator(SgExpression* expr);
isBinaryEqualityOperator
bool isBinaryEqualityOperator(SgExpression* expr);
isBinaryEqualsOperator
bool isBinaryEqualsOperator(SgExpression* expr);
isBinaryInequalityOperator
bool isBinaryInequalityOperator(SgExpression* expr);
isBinaryOperator
bool isBinaryOperator(SgExpression* expr);
isBinaryParenOperator
bool isBinaryParenOperator(SgExpression* expr);
isOperator
bool isOperator(SgExpression* expr);
functions that test for overloaded operator function (modified_sage.C) Pattern matching on a single IR node (usually the SgMemberFunctionRefExp)
isOverloadedArrowOperatorChain
bool isOverloadedArrowOperatorChain(SgExpression* expr);
Subtree query operators (pattern recognition on subtree, more complex than the test for a function name on the SgMemberFunctionRefExp node). This function is used to get for the combination of "operator->()->operator" since in this case the unparsed code can not be rediced to "->[i]".
isUnaryAddressOperator
bool isUnaryAddressOperator(SgExpression* expr);
isUnaryComplementOperator
bool isUnaryComplementOperator(SgExpression* expr);
isUnaryDecrementOperator
bool isUnaryDecrementOperator(SgExpression* expr);
isUnaryDereferenceOperator
bool isUnaryDereferenceOperator(SgExpression* expr);
isUnaryIncrementOperator
bool isUnaryIncrementOperator(SgExpression* expr);
isUnaryNotOperator
bool isUnaryNotOperator(SgExpression* expr);
isUnaryOperator
bool isUnaryOperator(SgExpression* expr);
isUnaryOperatorMinus
bool isUnaryOperatorMinus(SgExpression* expr);
isUnaryOperatorPlus
bool isUnaryOperatorPlus(SgExpression* expr);
isUnaryPostfixOperator
bool isUnaryPostfixOperator(SgExpression* expr);
outputExternLinkageSpecifier
void outputExternLinkageSpecifier( SgDeclarationStatement* decl_stmt, SgUnparse_Info& info);
outputTemplateSpecializationSpecifier
void outputTemplateSpecializationSpecifier( SgDeclarationStatement* decl_stmt, SgUnparse_Info& info);
popActiveExternLinkageBraceLanguage
void popActiveExternLinkageBraceLanguage();
printAlignmentSpecifiers
void printAlignmentSpecifiers( SgNode* owner, SgUnparse_Info& info, AlignmentPosition position);
printAttributes
void printAttributes( SgDeclarationStatement* decl_stmt, SgUnparse_Info& info);
printAttributesForType
void printAttributesForType( SgDeclarationStatement* decl_stmt, SgUnparse_Info& info);
printColorCodes
void printColorCodes( SgNode* node, bool openState, std::vector<std::pair<bool, std::string>>& stateVector);
Support for color codes in unparse output.
printGnuVisibilityAttributes
void printGnuVisibilityAttributes( SgDeclarationStatement* decl_stmt, bool leading_space);
printPrefixAttributes
void printPrefixAttributes( SgDeclarationStatement* decl_stmt, SgUnparse_Info& info);
printSpecifier
void printSpecifier( SgDeclarationStatement* decl_stmt, SgUnparse_Info& info);
printSpecifier2
void printSpecifier2( SgDeclarationStatement* decl_stmt, SgUnparse_Info& info);
pushActiveExternLinkageBraceLanguage
void pushActiveExternLinkageBraceLanguage(std::string const& language);
resetActiveExternLinkageBraceStack
void resetActiveExternLinkageBraceStack();
setupColorCodes
void setupColorCodes(std::vector<std::pair<bool, std::string>>& stateVector);

Private Data Members

Name
activeColorCodeStates
activeExternLinkageBraceStack
unp

Created with MrDocs