- Timestamp:
- May 23, 2019, 10:51:06 AM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 4139e3d
- Parents:
- a2e758e
- Location:
- src/AST
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
ra2e758e r335f2d8 159 159 assert( aggregate->result ); 160 160 161 #warning Needs GenericSubsitution.cpp building to work correctly 162 result.set_and_mutate( mem->get_type() )->qualifiers |= aggregate->result->qualifiers | CV::Lvalue; // FIXME temporary patch 163 164 // // take ownership of member type 165 // result = mem->get_type(); 166 // // substitute aggregate generic parameters into member type 167 // genericSubsitution( aggregate->result ).apply( result ); 168 // // ensure lvalue and appropriate restrictions from aggregate type 169 // result.get_and_mutate()->qualifiers |= aggregate->result->qualifiers | CV::Lvalue; 161 // take ownership of member type 162 result = mem->get_type(); 163 // substitute aggregate generic parameters into member type 164 genericSubsitution( aggregate->result ).apply( result ); 165 // ensure lvalue and appropriate restrictions from aggregate type 166 result.get_and_mutate()->qualifiers |= aggregate->result->qualifiers | CV::Lvalue; 170 167 } 171 168 -
src/AST/GenericSubstitution.cpp
ra2e758e r335f2d8 36 36 } 37 37 38 void previsit( const ReferenceType * ty) {38 void previsit( const ReferenceType * ) { 39 39 // do nothing; allows substitution from base type 40 40 } -
src/AST/Pass.hpp
ra2e758e r335f2d8 178 178 const ast::TypeSubstitution * visit( const ast::TypeSubstitution * ) override final; 179 179 180 friend void acceptAll( std::list< ptr<Decl> > & decls, Pass<pass_t>& visitor ); 180 template<typename pass_type> 181 friend void acceptAll( std::list< ptr<Decl> > & decls, Pass<pass_type>& visitor ); 181 182 private: 182 183 -
src/AST/Print.cpp
ra2e758e r335f2d8 7 7 // Print.cpp -- 8 8 // 9 // Author : Thierry Delisle10 // Created On : Tue May 21 16:20:15 20199 // Author : Thierry Delisle 10 // Created On : Tue May 21 16:20:15 2019 11 11 // Last Modified By : 12 12 // Last Modified On : 13 // Update Count :13 // Update Count : 14 14 // 15 15
Note: See TracChangeset
for help on using the changeset viewer.