Changeset 77bfc80 for src/Tuples
- Timestamp:
- May 17, 2019, 12:08:46 PM (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:
- 10a1225
- Parents:
- 8ff178d
- Location:
- src/Tuples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Tuples/TupleExpansion.cc
r8ff178d r77bfc80 320 320 } 321 321 const ast::Type * makeTupleType( const std::vector<ast::ptr<ast::Expr>> & exprs ) { 322 assert(!"implemented; needs Type.cpp in build"); 322 (void) exprs; 323 #warning Not implemented; needs Type.cpp in build 324 assertf(false, "Not implemented; needs Type.cpp in build"); 323 325 // // produce the TupleType which aggregates the types of the exprs 324 326 // std::vector<ast::ptr<ast::Type>> types; 325 // ast::CV::Qualifiers quals{ 326 // ast::CV::Const | ast::CV::Volatile | ast::CV::Restrict | ast::CV::Lvalue | 327 // ast::CV::Qualifiers quals{ 328 // ast::CV::Const | ast::CV::Volatile | ast::CV::Restrict | ast::CV::Lvalue | 327 329 // ast::CV::Atomic | ast::CV::Mutex }; 328 330 329 331 // for ( const ast::Expr * expr : exprs ) { 330 332 // assert( expr->result ); -
src/Tuples/Tuples.h
r8ff178d r77bfc80 29 29 namespace Tuples { 30 30 // TupleAssignment.cc 31 void handleTupleAssignment( ResolvExpr::AlternativeFinder & currentFinder, UntypedExpr * assign, 31 void handleTupleAssignment( ResolvExpr::AlternativeFinder & currentFinder, UntypedExpr * assign, 32 32 std::vector< ResolvExpr::AlternativeFinder >& args ); 33 33 34 34 // TupleExpansion.cc 35 35 /// expands z.[a, b.[x, y], c] into [z.a, z.b.x, z.b.y, z.c], inserting UniqueExprs as appropriate … … 48 48 /// returns a TypeInstType if `type` is a ttype, nullptr otherwise 49 49 TypeInstType * isTtype( Type * type ); 50 const ast::TypeInstType * isTtype( const ast::Type * type ); 50 51 51 52 /// returns true if the expression may contain side-effects.
Note:
See TracChangeset
for help on using the changeset viewer.