Changeset c198b69
- Timestamp:
- Jul 30, 2018, 4:43:47 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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 1be845b
- Parents:
- a95c117
- git-author:
- Rob Schluntz <rschlunt@…> (07/20/18 13:40:35)
- git-committer:
- Rob Schluntz <rschlunt@…> (07/30/18 16:43:47)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/GenType.cc
ra95c117 rc198b69 27 27 namespace CodeGen { 28 28 struct GenType : public WithVisitorRef<GenType>, public WithShortCircuiting { 29 GenType( const std::string &typeString, bool pretty = false, bool genC = false, bool lineMarks = false ); 30 std::string get_typeString() const { return typeString; } 31 void set_typeString( const std::string &newValue ) { typeString = newValue; } 29 std::string typeString; 30 GenType( const std::string &typeString, bool pretty, bool genC, bool lineMarks ); 32 31 33 32 void previsit( BaseSyntaxNode * ); … … 58 57 void genArray( const Type::Qualifiers &qualifiers, Type *base, Expression *dimension, bool isVarLen, bool isStatic ); 59 58 60 std::string typeString; 61 bool pretty = false; // pretty print 62 bool genC = false; // generating C code? 63 bool lineMarks = false; 59 bool pretty = false; // pretty print 60 bool genC = false; // generating C code? 61 bool lineMarks = false; // lineMarks on for CodeGenerator? 64 62 }; 65 63 … … 74 72 75 73 type->accept( gt ); 76 return os.str() + gt.pass. get_typeString();74 return os.str() + gt.pass.typeString; 77 75 } 78 76
Note: See TracChangeset
for help on using the changeset viewer.