Skip to content

SgUnparse_Info::unparse_type_num

Options available for unparsing the AST to generate source code

Synopsis

Declared in <src/frontend/SageIII/Cxx_Grammar.h> (not stored in Git)

enum unparse_type_num;

Description

These options can be set or unset and are passed from each unparse function to any called unparse functions. Sometimes a new unparse info object is generated, always using the copy constructor, so that the options can be modified for unparsing different parts of the AST.


This is implemented as a bit vector since it is over 32 bits.



Members

Name Description
b_enum_defaultValue default value
b_isPointerToSomething postponing the printing of name for ptr of function or array etc
b_isReferenceToSomething postponing the printing of name for ptr of function or array etc
b_inVarDecl if it is in Variable Declaration, output either , or ; for SgExprStmt
b_inArgList in a function header, output type+ symbol
b_SkipSemiColon no ';' for declaration statement
b_inEnumDecl setup for printing of enum var in a VariableDeclaration
b_SkipBaseType suppress printing of the base type
b_inAggregateInitializer skip "=" if in aggregate initializer
b_isWithType print both type and sym name
b_inConditional is in conditional expr (context information)
b_SkipDefinition skip printing definition part of a declaration
b_SkipClassSpecifier skip the class specifier (modifier)
b_inEmbeddedDecl printing something within a variable declaration
b_PrintName
b_SkipFunctionQualifier skip function qualifiers
b_isArrayType show that the type above current one is an array
b_isTypeSecondPart unparse only second part of type
b_isTypeFirstPart unparse only first part of type
b_SkipInitializer skip output of initializers
b_SkipComments ignore all comments in unparsing
b_SkipCPPDirectives ignore all C preprocessor directives (except #pragma which is in the AST)
b_SkipEnumDefinition skip over enum definition, if available
b_SkipFunctionDefinition Added by DQ to permit reuse of unparser code in generation of declarations in rewrite mechanism
b_SkipClassDefinition Added by DQ to permit reuse of unparser code in generation of declarations in rewrite mechanism
b_AddSemiColonAfterDeclaration add ';' after declaration
b_SkipWhitespaces ignore any unrequired white space
b_SkipBasicBlock skip over the unparsing of the basic block
b_outputClassTemplateName outputClassTemplateName
b_SkipConstantFoldedExpressions SkipConstantFoldedExpressions
b_forceQualifiedNames Force qualified names.
b_SkipQualifiedNames skip qualified names (e.g. names of defining declarations).
b_requiresGlobalNameQualification
b_SkipFormatting Fortran code generation requires that we skip some formatting (e.g. column 7 formatting, even if fixed format output).
b_outputFortranModFile Fortran mod file generation
b_supressStrippedTypeName
b_prefixOperator Part of support to unparse code using overloaded operator names or operator syntax (to match the input code); this marks prefix operators to be unparsed before the LHS s output.
b_supressArrayBound
b_supressImplicitThisOperator
b_unparsedPartiallyUsingTokenStream
b_forceAstStatementEmission
b_parentStatementListBeingUnparsedUsingPartialTokenSequence
b_cxx11_initialization_list Indicate when we are in a C++11 specific initialization list.
b_inTypedefDecl setup unparsing of base types in typedef declarations (for SgPointerMemberType) which requires extra parenthesis
b_SkipNameQualification
b_usedInUparseToStringFunction
b_useRestrictKeywordInsideArrayBrackets
UNPARSE_TYPE_LAST last value used for debugging

Created with MrDocs