Changes in src/Concurrency/Keywords.cc [bf2438c:2f9a722]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Keywords.cc
rbf2438c r2f9a722 17 17 #include "Concurrency/Keywords.h" 18 18 19 #include <cassert> // for assert 20 #include <string> // for string, operator== 21 22 #include "Common/SemanticError.h" // for SemanticError 23 #include "Common/utility.h" // for deleteAll, map_range 24 #include "InitTweak/InitTweak.h" // for isConstructor 25 #include "Parser/LinkageSpec.h" // for Cforall 26 #include "SymTab/AddVisit.h" // for acceptAndAdd 27 #include "SynTree/Constant.h" // for Constant 28 #include "SynTree/Declaration.h" // for StructDecl, FunctionDecl, ObjectDecl 29 #include "SynTree/Expression.h" // for VariableExpr, ConstantExpr, Untype... 30 #include "SynTree/Initializer.h" // for SingleInit, ListInit, Initializer ... 31 #include "SynTree/Label.h" // for Label 32 #include "SynTree/Statement.h" // for CompoundStmt, DeclStmt, ExprStmt 33 #include "SynTree/Type.h" // for StructInstType, Type, PointerType 34 #include "SynTree/Visitor.h" // for Visitor, acceptAll 35 36 class Attribute; 19 #include "InitTweak/InitTweak.h" 20 #include "SymTab/AddVisit.h" 21 #include "SynTree/Declaration.h" 22 #include "SynTree/Expression.h" 23 #include "SynTree/Initializer.h" 24 #include "SynTree/Statement.h" 25 #include "SynTree/Type.h" 26 #include "SynTree/Visitor.h" 37 27 38 28 namespace Concurrency { … … 332 322 if( needs_main ) { 333 323 FunctionType * main_type = new FunctionType( noQualifiers, false ); 334 324 335 325 main_type->get_parameters().push_back( this_decl->clone() ); 336 326 … … 371 361 void ConcurrentSueKeyword::addRoutines( ObjectDecl * field, FunctionDecl * func ) { 372 362 CompoundStmt * statement = new CompoundStmt( noLabels ); 373 statement->push_back( 363 statement->push_back( 374 364 new ReturnStmt( 375 365 noLabels, … … 396 386 //============================================================================================= 397 387 void MutexKeyword::visit(FunctionDecl* decl) { 398 Visitor::visit(decl); 388 Visitor::visit(decl); 399 389 400 390 std::list<DeclarationWithType*> mutexArgs = findMutexArgs( decl ); … … 520 510 void ThreadStarter::visit(FunctionDecl * decl) { 521 511 Visitor::visit(decl); 522 512 523 513 if( ! InitTweak::isConstructor(decl->get_name()) ) return; 524 514 … … 538 528 if( ! stmt ) return; 539 529 540 stmt->push_back( 530 stmt->push_back( 541 531 new ExprStmt( 542 532 noLabels,
Note:
See TracChangeset
for help on using the changeset viewer.