Changeset da7fe39 for src/CodeGen/CodeGenerator.h
- Timestamp:
- Apr 23, 2018, 12:57:46 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 57acae0
- Parents:
- ba89e9b7 (diff), c8ad5d9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.h
rba89e9b7 rda7fe39 27 27 28 28 namespace CodeGen { 29 struct CodeGenerator : public WithShortCircuiting, public With VisitorRef<CodeGenerator> {29 struct CodeGenerator : public WithShortCircuiting, public WithGuards, public WithVisitorRef<CodeGenerator> { 30 30 static int tabsize; 31 31 32 CodeGenerator( std::ostream &os, bool pretty = false, bool genC = false, bool lineMarks = false );32 CodeGenerator( std::ostream &os, bool pretty = false, bool genC = false, bool lineMarks = false, bool printExprTypes = false ); 33 33 34 34 //*** Turn off visit_children for all nodes … … 37 37 //*** Error for unhandled node types 38 38 void postvisit( BaseSyntaxNode * ); 39 40 //*** print type for all expressions 41 void previsit( Expression * node ); 39 42 40 43 //*** Declaration … … 66 69 void postvisit( LabelAddressExpr *addressExpr ); 67 70 void postvisit( CastExpr *castExpr ); 71 void postvisit( KeywordCastExpr * castExpr ); 68 72 void postvisit( VirtualCastExpr *castExpr ); 69 73 void postvisit( UntypedMemberExpr *memberExpr ); … … 140 144 bool genC = false; // true if output has to be C code 141 145 bool lineMarks = false; 146 bool printExprTypes = false; 142 147 public: 143 148 LineEnder endl;
Note: See TracChangeset
for help on using the changeset viewer.