Changeset be9288a


Ignore:
Timestamp:
Aug 15, 2017, 1:38:04 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
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, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
bd098ea
Parents:
ea6332d
Message:

Fixed errors made by the clean-up tool

Location:
src
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • src/Common/utility.h

    rea6332d rbe9288a  
    2727
    2828#include <cassert>
     29
    2930template< typename T >
    3031static inline T * maybeClone( const T *orig ) {
  • src/Concurrency/Keywords.cc

    rea6332d rbe9288a  
    2323#include "InitTweak/InitTweak.h"   // for isConstructor
    2424#include "Parser/LinkageSpec.h"    // for Cforall
     25#include "SymTab/AddVisit.h"       // for acceptAndAdd
    2526#include "SynTree/Constant.h"      // for Constant
    2627#include "SynTree/Declaration.h"   // for StructDecl, FunctionDecl, ObjectDecl
  • src/ControlStruct/Mutate.cc

    rea6332d rbe9288a  
    1717#include <list>                    // for list
    1818
     19#include "Common/PassVisitor.h"    // for mutateAll
    1920#include "Common/SemanticError.h"  // for SemanticError
    2021#include "ForExprMutator.h"        // for ForExprMutator
    2122#include "LabelFixer.h"            // for LabelFixer
    2223#include "Mutate.h"
    23 #include "PassVisitor.h"           // for mutateAll
    2424#include "SynTree/Declaration.h"   // for Declaration
    2525#include "SynTree/Mutator.h"       // for mutateAll
  • src/GenPoly/InstantiateGeneric.cc

    rea6332d rbe9288a  
    1313// Update Count     : 1
    1414//
     15#include "InstantiateGeneric.h"
    1516
    1617#include <cassert>                     // for assertf, assert
     
    2627#include "Common/utility.h"            // for deleteAll, cloneAll
    2728#include "GenPoly.h"                   // for isPolyType, typesPolyCompatible
    28 #include "InstantiateGeneric.h"
    29 #include "PassVisitor.h"               // for mutateAll
    3029#include "ScopedSet.h"                 // for ScopedSet, ScopedSet<>::iterator
    3130#include "ScrubTyVars.h"               // for ScrubTyVars
  • src/InitTweak/FixInit.cc

    rea6332d rbe9288a  
    1313// Update Count     : 74
    1414//
     15#include "FixInit.h"
    1516
    1617#include <stddef.h>                    // for NULL
     
    3334#include "Common/utility.h"            // for CodeLocation, ValueGuard, toSt...
    3435#include "FixGlobalInit.h"             // for fixGlobalInit
    35 #include "FixInit.h"
    3636#include "GenInit.h"                   // for genCtorDtor
    3737#include "GenPoly/DeclMutator.h"       // for DeclMutator
     
    4040#include "InitTweak.h"                 // for getFunctionName, getCallArg
    4141#include "Parser/LinkageSpec.h"        // for C, Spec, Cforall, isBuiltin
    42 #include "PassVisitor.h"               // for mutateAll
    4342#include "ResolvExpr/Resolver.h"       // for findVoidExpression
    4443#include "ResolvExpr/typeops.h"        // for typesCompatible
  • src/InitTweak/GenInit.cc

    rea6332d rbe9288a  
    1313// Update Count     : 183
    1414//
     15#include "GenInit.h"
    1516
    1617#include <stddef.h>                // for NULL
     
    2425#include "Common/UniqueName.h"     // for UniqueName
    2526#include "Common/utility.h"        // for ValueGuard, maybeClone
    26 #include "GenInit.h"
    2727#include "GenPoly/DeclMutator.h"   // for DeclMutator
    2828#include "GenPoly/GenPoly.h"       // for getFunctionType, isPolyType
     
    3030#include "InitTweak.h"             // for isConstExpr, InitExpander, checkIn...
    3131#include "Parser/LinkageSpec.h"    // for isOverridable, C
    32 #include "PassVisitor.h"           // for bool_ref, acceptAll, mutateAll
    3332#include "SymTab/Autogen.h"        // for genImplicitCall, SizeType
    3433#include "SymTab/Mangler.h"        // for Mangler
  • src/InitTweak/InitTweak.h

    rea6332d rbe9288a  
    1616#pragma once
    1717
    18 #include <bits/shared_ptr.h>  // for shared_ptr
    1918#include <list>               // for list
     19#include <memory>             // for shared_ptr
    2020#include <string>             // for string, allocator
    2121
  • src/Parser/ParseNode.h

    rea6332d rbe9288a  
    2525
    2626#include "Common/SemanticError.h"  // for SemanticError
     27#include "Common/UniqueName.h"     // for UniqueName
    2728#include "Common/utility.h"        // for maybeClone, CodeLocation, maybeBuild
    2829#include "Parser/LinkageSpec.h"    // for Spec
     
    3940class Initializer;
    4041class StatementNode;
    41 class UniqueName;
    4242
    4343//##############################################################################
  • src/Parser/TypedefTable.h

    rea6332d rbe9288a  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // TypedefTable.h -- 
     7// TypedefTable.h --
    88//
    99// Author           : Rodolfo G. Esteves
     
    2121#include <string>     // for string
    2222
     23#include "ParserTypes.h"
    2324#include "parser.hh"  // for IDENTIFIER, TYPEDEFname, TYPEGENname
    2425
     
    3132                kind_t kind;
    3233        };
    33        
     34
    3435        struct DeferredEntry {
    3536                std::string identifier;
     
    4344        std::string currentTrait;
    4445        int contextScope;
    45        
     46
    4647        typedef std::list< DeferredEntry > deferListType;
    4748        std::stack< deferListType > deferListStack;
    4849        std::map< std::string, deferListType > contexts;
    49        
     50
    5051        std::stack< std::string > nextIdentifiers;
    5152
     
    6970        void addToEnclosingScope( const std::string &identifier, kind_t kind );
    7071        void addToEnclosingScope( kind_t kind );                // use nextIdentifiers.top()
    71        
     72
    7273        // "addToEnclosingScope2" adds the identifier/type pair to the scope that encloses the scope enclosing the the
    7374        // current one.  This is the right way to handle assertion names
    7475        void addToEnclosingScope2( const std::string &identifier, kind_t kind );
    7576        void addToEnclosingScope2( kind_t kind );               // use nextIdentifiers.top()
    76        
     77
    7778        // set the next identifier to be used by an "add" operation without an identifier parameter within the current scope
    7879        void setNextIdentifier( const std::string &identifier );
    79        
     80
    8081        // dump the definitions from a pre-defined context into the current scope
    8182        void openTrait( const std::string &contextName );
    82        
     83
    8384        void enterScope();
    8485        void leaveScope();
  • src/SymTab/Autogen.cc

    rea6332d rbe9288a  
    1515#include "Autogen.h"
    1616
    17 #include <cassert>                // for assert, assertf
    18 #include <cstddef>                // for NULL
     17#include <cstddef>                 // for NULL
     18#include <algorithm>               // for count_if
     19#include <cassert>                 // for safe_dynamic_cast, assert, assertf
     20#include <iterator>                // for back_insert_iterator, back_inserter
     21#include <list>                    // for list, _List_iterator, list<>::iter...
     22#include <set>                     // for set, _Rb_tree_const_iterator
     23#include <utility>                 // for pair
     24#include <vector>                  // for vector
    1925
    2026#include "AddVisit.h"             // for addVisit
     
    2329#include "GenPoly/ScopedSet.h"    // for ScopedSet
    2430#include "Parser/LinkageSpec.h"   // for AutoGen, Intrinsic, Spec
     31#include "SymTab/Mangler.h"       // for mangleType
    2532#include "SynTree/Statement.h"    // for SwitchStmt (ptr only), CompoundStmt
    2633#include "SynTree/Type.h"         // for Type, ArrayType, Type::StorageClasses
  • src/SymTab/Validate.cc

    rea6332d rbe9288a  
    4646#include <utility>                     // for pair
    4747
     48#include "CodeGen/CodeGenerator.h"     // for genName
    4849#include "Common/PassVisitor.h"        // for PassVisitor, WithDeclsToAdd
    4950#include "Common/ScopedMap.h"          // for ScopedMap
    5051#include "Common/SemanticError.h"      // for SemanticError
    5152#include "Common/UniqueName.h"         // for UniqueName
     53#include "Common/utility.h"            // for operator+, cloneAll, deleteAll
     54#include "Concurrency/Keywords.h"      // for applyKeywords
    5255#include "FixFunction.h"               // for FixFunction
    5356#include "Indexer.h"                   // for Indexer
     
    5558#include "Parser/LinkageSpec.h"        // for C
    5659#include "ResolvExpr/typeops.h"        // for typesCompatible
     60#include "SymTab/AddVisit.h"           // for addVisit
     61#include "SymTab/Autogen.h"            // for SizeType
     62#include "SynTree/Attribute.h"         // for noAttributes, Attribute
    5763#include "SynTree/Constant.h"          // for Constant
    5864#include "SynTree/Declaration.h"       // for ObjectDecl, DeclarationWithType
     
    6874class ReturnStmt;
    6975class SwitchStmt;
     76
    7077
    7178#define debugPrint( x ) if ( doDebug ) { std::cout << x; }
  • src/SynTree/Type.cc

    rea6332d rbe9288a  
    1313// Update Count     : 29
    1414//
     15#include "Type.h"
    1516
    1617#include "Attribute.h"               // for Attribute
     
    1819#include "InitTweak/InitTweak.h"     // for getPointerBase
    1920#include "SynTree/BaseSyntaxNode.h"  // for BaseSyntaxNode
    20 #include "Type.h"
     21#include "SynTree/Declaration.h"     // for TypeDecl
    2122
    2223using namespace std;
  • src/Tuples/TupleExpansion.cc

    rea6332d rbe9288a  
    2424#include "InitTweak/InitTweak.h"  // for getFunction
    2525#include "Parser/LinkageSpec.h"   // for Spec, C, Intrinsic
    26 #include "PassVisitor.h"               // for mutateAll
    2726#include "SynTree/Constant.h"     // for Constant
    2827#include "SynTree/Declaration.h"  // for StructDecl, DeclarationWithType
  • src/main.cc

    rea6332d rbe9288a  
    2323#include <cstdlib>                          // for exit, free, abort, EXIT_F...
    2424#include <cstring>                          // for index
     25#include <fstream>                          // for ofstream
    2526#include <iostream>                         // for operator<<, basic_ostream
    2627#include <iterator>                         // for back_inserter
Note: See TracChangeset for help on using the changeset viewer.