Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Keywords.cc

    rbf2438c r2f9a722  
    1717#include "Concurrency/Keywords.h"
    1818
    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"
    3727
    3828namespace Concurrency {
     
    332322                if( needs_main ) {
    333323                        FunctionType * main_type = new FunctionType( noQualifiers, false );
    334 
     324                       
    335325                        main_type->get_parameters().push_back( this_decl->clone() );
    336326
     
    371361        void ConcurrentSueKeyword::addRoutines( ObjectDecl * field, FunctionDecl * func ) {
    372362                CompoundStmt * statement = new CompoundStmt( noLabels );
    373                 statement->push_back(
     363                statement->push_back( 
    374364                        new ReturnStmt(
    375365                                noLabels,
     
    396386        //=============================================================================================
    397387        void MutexKeyword::visit(FunctionDecl* decl) {
    398                 Visitor::visit(decl);
     388                Visitor::visit(decl);           
    399389
    400390                std::list<DeclarationWithType*> mutexArgs = findMutexArgs( decl );
     
    520510        void ThreadStarter::visit(FunctionDecl * decl) {
    521511                Visitor::visit(decl);
    522 
     512               
    523513                if( ! InitTweak::isConstructor(decl->get_name()) ) return;
    524514
     
    538528                if( ! stmt ) return;
    539529
    540                 stmt->push_back(
     530                stmt->push_back( 
    541531                        new ExprStmt(
    542532                                noLabels,
Note: See TracChangeset for help on using the changeset viewer.