Changeset 08fc48f


Ignore:
Timestamp:
Aug 15, 2017, 11:36:14 AM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
d180746
Parents:
84993ff2
Message:

Big header cleaning pass - commit 1

Location:
src
Files:
26 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.h

    r84993ff2 r08fc48f  
    2020#include <string>                 // for string
    2121
     22#include "Common/Indenter.h"      // for Indenter
    2223#include "SynTree/Declaration.h"  // for DeclarationWithType (ptr only), Fun...
    2324#include "SynTree/Visitor.h"      // for Visitor
    2425#include "SynTree/SynTree.h"      // for Visitor Nodes
    25 
    26 #include "Common/Indenter.h"      // for Indenter
    2726
    2827namespace CodeGen {
  • src/CodeTools/TrackLoc.cc

    r84993ff2 r08fc48f  
    1818#include <cstdlib>                   // for exit, EXIT_FAILURE
    1919#include <iostream>                  // for operator<<, ostream, basic_ostream
     20#include <iterator>                  // for back_inserter, inserter
    2021#include <stack>                     // for stack
    2122#include <string>                    // for operator<<, string
     
    2324
    2425#include "Common/PassVisitor.h"      // for PassVisitor
     26#include "Common/SemanticError.h"    // for SemanticError
    2527#include "Common/utility.h"          // for CodeLocation
    2628#include "SynTree/BaseSyntaxNode.h"  // for BaseSyntaxNode
     29#include "SynTree/Mutator.h"         // for mutateAll
     30#include "SynTree/Visitor.h"         // for acceptAll
    2731
    2832class Declaration;
  • src/Common/PassVisitor.h

    r84993ff2 r08fc48f  
    11#pragma once
     2
     3// IWYU pragma: private, include "Common/PassVisitor.h"
    24
    35#include <stack>
  • src/Concurrency/Keywords.cc

    r84993ff2 r08fc48f  
    2323#include "InitTweak/InitTweak.h"   // for isConstructor
    2424#include "Parser/LinkageSpec.h"    // for Cforall
    25 #include "SymTab/AddVisit.h"       // for acceptAndAdd
    2625#include "SynTree/Constant.h"      // for Constant
    2726#include "SynTree/Declaration.h"   // for StructDecl, FunctionDecl, ObjectDecl
  • src/GenPoly/Box.cc

    r84993ff2 r08fc48f  
    1414//
    1515
    16 #include <algorithm>
    17 #include <iterator>
    18 #include <list>
    19 #include <map>
    20 #include <set>
    21 #include <stack>
    22 #include <string>
    23 #include <utility>
    24 #include <vector>
    25 #include <cassert>
     16#include <algorithm>                     // for mismatch
     17#include <cassert>                       // for assert, safe_dynamic_cast
     18#include <iostream>                      // for operator<<, stringstream
     19#include <list>                          // for list, list<>::iterator, _Lis...
     20#include <map>                           // for _Rb_tree_const_iterator, map
     21#include <memory>                        // for auto_ptr
     22#include <set>                           // for set
     23#include <string>                        // for string, allocator, basic_string
     24#include <utility>                       // for pair
    2625
    2726#include "Box.h"
    28 #include "DeclMutator.h"
    29 #include "Lvalue.h"
    30 #include "FindFunction.h"
    31 #include "PolyMutator.h"
    32 #include "ScopedSet.h"
    33 #include "ScrubTyVars.h"
    34 
    35 #include "Parser/ParseNode.h"
    36 
    37 #include "SynTree/Attribute.h"
    38 #include "SynTree/Constant.h"
    39 #include "SynTree/Declaration.h"
    40 #include "SynTree/Expression.h"
    41 #include "SynTree/Initializer.h"
    42 #include "SynTree/Mutator.h"
    43 #include "SynTree/Statement.h"
    44 #include "SynTree/Type.h"
    45 #include "SynTree/TypeSubstitution.h"
    46 
    47 #include "ResolvExpr/TypeEnvironment.h"
    48 #include "ResolvExpr/TypeMap.h"
    49 #include "ResolvExpr/typeops.h"
    50 
    51 #include "SymTab/Indexer.h"
    52 #include "SymTab/Mangler.h"
    53 
    54 #include "Common/ScopedMap.h"
    55 #include "Common/SemanticError.h"
    56 #include "Common/UniqueName.h"
    57 #include "Common/utility.h"
    58 
    59 #include "InitTweak/InitTweak.h"
    60 
    61 #include <ext/functional> // temporary
     27#include "Common/ScopedMap.h"            // for ScopedMap, ScopedMap<>::iter...
     28#include "Common/SemanticError.h"        // for SemanticError
     29#include "Common/UniqueName.h"           // for UniqueName
     30#include "Common/utility.h"              // for toString
     31#include "DeclMutator.h"                 // for DeclMutator
     32#include "FindFunction.h"                // for findFunction, findAndReplace...
     33#include "GenPoly/ErasableScopedMap.h"   // for ErasableScopedMap<>::const_i...
     34#include "GenPoly/GenPoly.h"             // for TyVarMap, isPolyType, mangle...
     35#include "InitTweak/InitTweak.h"         // for getFunctionName, isAssignment
     36#include "Lvalue.h"                      // for generalizedLvalue
     37#include "Parser/LinkageSpec.h"          // for C, Spec, Cforall, Intrinsic
     38#include "PolyMutator.h"                 // for PolyMutator
     39#include "ResolvExpr/TypeEnvironment.h"  // for EqvClass
     40#include "ResolvExpr/typeops.h"          // for typesCompatible
     41#include "ScopedSet.h"                   // for ScopedSet, ScopedSet<>::iter...
     42#include "ScrubTyVars.h"                 // for ScrubTyVars
     43#include "SymTab/Indexer.h"              // for Indexer
     44#include "SymTab/Mangler.h"              // for Mangler
     45#include "SynTree/Attribute.h"           // for Attribute
     46#include "SynTree/Constant.h"            // for Constant
     47#include "SynTree/Declaration.h"         // for DeclarationWithType, ObjectDecl
     48#include "SynTree/Expression.h"          // for ApplicationExpr, UntypedExpr
     49#include "SynTree/Initializer.h"         // for SingleInit, Initializer, Lis...
     50#include "SynTree/Label.h"               // for Label, noLabels
     51#include "SynTree/Mutator.h"             // for maybeMutate, Mutator, mutateAll
     52#include "SynTree/Statement.h"           // for ExprStmt, DeclStmt, ReturnStmt
     53#include "SynTree/SynTree.h"             // for UniqueId
     54#include "SynTree/Type.h"                // for Type, FunctionType, PointerType
     55#include "SynTree/TypeSubstitution.h"    // for TypeSubstitution, operator<<
    6256
    6357namespace GenPoly {
  • src/GenPoly/Box.h

    r84993ff2 r08fc48f  
    1616#pragma once
    1717
    18 #include <list>
    19 #include "SynTree/SynTree.h"
     18#include <list>  // for list
     19
     20class Declaration;
    2021
    2122namespace GenPoly {
  • src/GenPoly/CopyParams.cc

    r84993ff2 r08fc48f  
    1414//
    1515
    16 #include <set>
    17 #include <map>
    18 #include <cassert>
     16#include <cassert>                 // for assert
     17#include <list>                    // for list, _List_iterator, _List_const_...
     18#include <map>                     // for map, _Rb_tree_const_iterator, map<...
     19#include <set>                     // for set, set<>::const_iterator
     20#include <string>                  // for string, operator==
     21#include <utility>                 // for pair
    1922
    20 #include "SynTree/Declaration.h"
    21 #include "SynTree/Type.h"
    22 #include "SynTree/Expression.h"
    23 #include "SynTree/Statement.h"
    24 #include "SynTree/Visitor.h"
    25 #include "Common/UniqueName.h"
     23#include "Common/SemanticError.h"  // for SemanticError
     24#include "Common/UniqueName.h"     // for UniqueName
     25#include "SynTree/Declaration.h"   // for DeclarationWithType, TypeDecl, Fun...
     26#include "SynTree/Expression.h"    // for VariableExpr, ApplicationExpr, Add...
     27#include "SynTree/Label.h"         // for Label, noLabels
     28#include "SynTree/Statement.h"     // for CompoundStmt, DeclStmt, ExprStmt
     29#include "SynTree/SynTree.h"       // for UniqueId
     30#include "SynTree/Type.h"          // for FunctionType, TypeInstType, Type
     31#include "SynTree/Visitor.h"       // for acceptAll, Visitor
    2632
    2733namespace GenPoly {
  • src/GenPoly/DeclMutator.cc

    r84993ff2 r08fc48f  
    1616#include "DeclMutator.h"
    1717
    18 #include "SynTree/Expression.h"
    19 #include "SynTree/Statement.h"
     18#include <memory>                  // for allocator_traits<>::value_type
     19
     20#include "Common/SemanticError.h"  // for SemanticError
     21#include "SynTree/Declaration.h"   // for Declaration
     22#include "SynTree/Expression.h"    // for Expression
     23#include "SynTree/Label.h"         // for Label, noLabels
     24#include "SynTree/Statement.h"     // for CatchStmt, Statement, CompoundStmt
    2025
    2126namespace GenPoly {
  • src/GenPoly/DeclMutator.h

    r84993ff2 r08fc48f  
    1616#pragma once
    1717
    18 #include <list>
    19 #include <vector>
     18#include <list>               // for list
     19#include <vector>             // for vector
    2020
    21 #include "SynTree/SynTree.h"
    22 #include "SynTree/Declaration.h"
    23 #include "SynTree/Mutator.h"
     21#include "SynTree/Mutator.h"  // for Mutator
     22#include "SynTree/SynTree.h"  // for Visitor Nodes
    2423
    2524namespace GenPoly {
  • src/GenPoly/FindFunction.cc

    r84993ff2 r08fc48f  
    1515
    1616#include "FindFunction.h"
    17 #include "SynTree/Type.h"
    18 #include "SynTree/Declaration.h"
    19 #include "SynTree/Visitor.h"
    2017
    21 #include "ScrubTyVars.h"
     18#include <utility>                      // for pair
     19
     20#include "Common/SemanticError.h"       // for SemanticError
     21#include "GenPoly/ErasableScopedMap.h"  // for ErasableScopedMap<>::iterator
     22#include "GenPoly/GenPoly.h"            // for TyVarMap
     23#include "ScrubTyVars.h"                // for ScrubTyVars
     24#include "SynTree/Declaration.h"        // for DeclarationWithType, TypeDecl
     25#include "SynTree/Mutator.h"            // for Mutator, mutateAll
     26#include "SynTree/Type.h"               // for FunctionType, Type, Type::For...
    2227
    2328namespace GenPoly {
  • src/GenPoly/FindFunction.h

    r84993ff2 r08fc48f  
    1616#pragma once
    1717
    18 #include "SynTree/SynTree.h"
    19 #include "GenPoly.h"
     18#include <list>       // for list
     19
     20#include "GenPoly.h"  // for TyVarMap
     21
     22class FunctionType;
     23class Type;
    2024
    2125namespace GenPoly {
  • src/GenPoly/GenPoly.cc

    r84993ff2 r08fc48f  
    1515
    1616#include "GenPoly.h"
    17 #include "assert.h"
    18 
    19 #include "SynTree/Expression.h"
    20 #include "SynTree/Type.h"
    21 #include "ResolvExpr/typeops.h"
    22 
    23 #include <iostream>
    24 #include <iterator>
    25 #include <list>
    26 #include <typeindex>
    27 #include <typeinfo>
    28 #include <vector>
     17
     18#include <cassert>                      // for assertf, assert
     19#include <iostream>                     // for operator<<, ostream, basic_os...
     20#include <iterator>                     // for back_insert_iterator, back_in...
     21#include <list>                         // for list, _List_iterator, list<>:...
     22#include <typeindex>                    // for type_index
     23#include <utility>                      // for pair
     24#include <vector>                       // for vector
     25
     26#include "GenPoly/ErasableScopedMap.h"  // for ErasableScopedMap<>::const_it...
     27#include "ResolvExpr/typeops.h"         // for flatten
     28#include "SynTree/Constant.h"           // for Constant
     29#include "SynTree/Expression.h"         // for Expression, TypeExpr, Constan...
     30#include "SynTree/Type.h"               // for Type, StructInstType, UnionIn...
     31#include "SynTree/TypeSubstitution.h"   // for TypeSubstitution
     32
    2933using namespace std;
    3034
  • src/GenPoly/GenPoly.h

    r84993ff2 r08fc48f  
    1616#pragma once
    1717
    18 #include <string>
    19 #include <iostream>
    20 #include <utility>
     18#include <iostream>               // for ostream
     19#include <string>                 // for string, allocator, operator+, basic...
    2120
    22 #include "ErasableScopedMap.h"
    23 
    24 #include "SymTab/Mangler.h"
    25 
    26 #include "SynTree/Declaration.h"
    27 #include "SynTree/Type.h"
    28 #include "SynTree/TypeSubstitution.h"
     21#include "ErasableScopedMap.h"    // for ErasableScopedMap
     22#include "SymTab/Mangler.h"       // for Mangler
     23#include "SynTree/Declaration.h"  // for TypeDecl::Data, AggregateDecl, Type...
     24#include "SynTree/SynTree.h"      // for Visitor Nodes
    2925
    3026namespace GenPoly {
     
    6662        Type *hasPolyBase( Type *type, const TyVarMap &tyVars, int *levels = 0, const TypeSubstitution *env = 0 );
    6763
    68         /// true iff this type or some base of this type after dereferencing pointers is either polymorphic or a generic type with at least one 
     64        /// true iff this type or some base of this type after dereferencing pointers is either polymorphic or a generic type with at least one
    6965        /// polymorphic parameter; will look up substitution in env if provided.
    7066        bool includesPolyType( Type *type, const TypeSubstitution *env = 0 );
    7167
    72         /// true iff this type or some base of this type after dereferencing pointers is either polymorphic in tyVars, or a generic type with 
     68        /// true iff this type or some base of this type after dereferencing pointers is either polymorphic in tyVars, or a generic type with
    7369        /// at least one polymorphic parameter in tyVars; will look up substitution in env if provided.
    7470        bool includesPolyType( Type *type, const TyVarMap &tyVars, const TypeSubstitution *env = 0 );
  • src/GenPoly/InstantiateGeneric.cc

    r84993ff2 r08fc48f  
    1414//
    1515
    16 #include <cassert>
    17 #include <list>
    18 #include <unordered_map>
    19 #include <utility>
    20 #include <vector>
    21 
     16#include <cassert>                     // for assertf, assert
     17#include <iterator>                    // for back_inserter, inserter
     18#include <list>                        // for list, _List_const_iterator
     19#include <utility>                     // for move, pair
     20#include <vector>                      // for vector
     21
     22#include "Common/PassVisitor.h"        // for PassVisitor, WithDeclsToAdd
     23#include "Common/ScopedMap.h"          // for ScopedMap
     24#include "Common/SemanticError.h"      // for SemanticError
     25#include "Common/UniqueName.h"         // for UniqueName
     26#include "Common/utility.h"            // for deleteAll, cloneAll
     27#include "GenPoly.h"                   // for isPolyType, typesPolyCompatible
    2228#include "InstantiateGeneric.h"
    23 
    24 #include "GenPoly.h"
    25 #include "ScopedSet.h"
    26 #include "ScrubTyVars.h"
    27 
    28 #include "Common/PassVisitor.h"
    29 #include "Common/ScopedMap.h"
    30 #include "Common/UniqueName.h"
    31 #include "Common/utility.h"
    32 
    33 #include "ResolvExpr/typeops.h"
    34 
    35 #include "SynTree/Declaration.h"
    36 #include "SynTree/Expression.h"
    37 #include "SynTree/Type.h"
    38 
    39 
    40 #include "InitTweak/InitTweak.h"
     29#include "PassVisitor.h"               // for mutateAll
     30#include "ScopedSet.h"                 // for ScopedSet, ScopedSet<>::iterator
     31#include "ScrubTyVars.h"               // for ScrubTyVars
     32#include "SynTree/Declaration.h"       // for StructDecl, UnionDecl, TypeDecl
     33#include "SynTree/Expression.h"        // for TypeExpr, Expression
     34#include "SynTree/Mutator.h"           // for mutateAll
     35#include "SynTree/Type.h"              // for StructInstType, UnionInstType
     36#include "SynTree/TypeSubstitution.h"  // for TypeSubstitution
     37#include "SynTree/Visitor.h"           // for acceptAll
    4138
    4239
  • src/GenPoly/InstantiateGeneric.h

    r84993ff2 r08fc48f  
    1616#pragma once
    1717
    18 #include "SynTree/SynTree.h"
     18#include <list>  // for list
     19
     20class Declaration;
    1921
    2022namespace GenPoly {
  • src/GenPoly/Lvalue.cc

    r84993ff2 r08fc48f  
    1414//
    1515
    16 #include <cassert>
    17 
     16#include <cassert>                       // for safe_dynamic_cast
     17#include <string>                        // for string
     18
     19#include "Common/SemanticError.h"        // for SemanticError
     20#include "GenPoly.h"                     // for isPolyType
    1821#include "Lvalue.h"
    19 
    20 #include "GenPoly.h"
    21 
    22 #include "SynTree/Declaration.h"
    23 #include "SynTree/Type.h"
    24 #include "SynTree/Expression.h"
    25 #include "SynTree/Statement.h"
    26 #include "SynTree/Visitor.h"
    27 #include "SynTree/Mutator.h"
    28 #include "SymTab/Indexer.h"
    29 
    30 #include "ResolvExpr/Resolver.h"
    31 #include "ResolvExpr/TypeEnvironment.h"
    32 #include "ResolvExpr/typeops.h"
    33 #include "ResolvExpr/Unify.h"
    34 
    35 #include "Common/UniqueName.h"
    36 #include "Common/utility.h"
     22#include "Parser/LinkageSpec.h"          // for Spec, isBuiltin, Intrinsic
     23#include "ResolvExpr/TypeEnvironment.h"  // for AssertionSet, OpenVarSet
     24#include "ResolvExpr/Unify.h"            // for unify
     25#include "SymTab/Indexer.h"              // for Indexer
     26#include "SynTree/Declaration.h"         // for Declaration, FunctionDecl
     27#include "SynTree/Expression.h"          // for Expression, ConditionalExpr
     28#include "SynTree/Mutator.h"             // for mutateAll, Mutator
     29#include "SynTree/Statement.h"           // for ReturnStmt, Statement (ptr o...
     30#include "SynTree/Type.h"                // for PointerType, Type, FunctionType
     31#include "SynTree/Visitor.h"             // for Visitor, acceptAll
    3732
    3833namespace GenPoly {
  • src/GenPoly/Lvalue.h

    r84993ff2 r08fc48f  
    1616#pragma once
    1717
    18 #include <list>
     18#include <list>  // for list
    1919
    20 #include "SynTree/SynTree.h"
     20class Declaration;
     21class Expression;
    2122
    2223namespace GenPoly {
  • src/GenPoly/PolyMutator.cc

    r84993ff2 r08fc48f  
    1515
    1616#include "PolyMutator.h"
    17 #include "SynTree/Declaration.h"
    18 #include "SynTree/Type.h"
    19 #include "SynTree/Expression.h"
    20 #include "SynTree/Statement.h"
    21 #include "SynTree/Mutator.h"
    22 #include "SynTree/Initializer.h"
     17
     18#include "Common/SemanticError.h"  // for SemanticError
     19#include "Common/utility.h"        // for ValueGuard
     20#include "SynTree/Declaration.h"   // for Declaration, TypeDecl, TypeDecl::Data
     21#include "SynTree/Expression.h"    // for Expression, UntypedExpr, StmtExpr ...
     22#include "SynTree/Initializer.h"   // for SingleInit, Initializer (ptr only)
     23#include "SynTree/Label.h"         // for Label, noLabels
     24#include "SynTree/Mutator.h"       // for maybeMutate, mutateAll
     25#include "SynTree/Statement.h"     // for CatchStmt, CompoundStmt, ForStmt
     26
     27class TypeSubstitution;
    2328
    2429namespace GenPoly {
  • src/GenPoly/PolyMutator.h

    r84993ff2 r08fc48f  
    1616#pragma once
    1717
    18 #include <map>
    19 #include <string>
    20 #include <list>
     18#include <list>               // for list
    2119
    22 #include "GenPoly.h"
    23 
    24 #include "SynTree/SynTree.h"
    25 #include "SynTree/Declaration.h"
    26 #include "SynTree/Mutator.h"
     20#include "GenPoly.h"          // for TyVarMap
     21#include "SynTree/Mutator.h"  // for Mutator
     22#include "SynTree/SynTree.h"  // for Visitor Nodes
    2723
    2824namespace GenPoly {
  • src/GenPoly/ScrubTyVars.cc

    r84993ff2 r08fc48f  
    1414//
    1515
    16 #include <sstream>
    17 #include <string>
     16#include <utility>                      // for pair
    1817
    19 #include "GenPoly.h"
     18#include "GenPoly.h"                    // for mangleType, TyVarMap, alignof...
     19#include "GenPoly/ErasableScopedMap.h"  // for ErasableScopedMap<>::const_it...
    2020#include "ScrubTyVars.h"
    21 
    22 #include "SynTree/Mutator.h"
    23 #include "SynTree/Type.h"
    24 #include "SynTree/Expression.h"
     21#include "SynTree/Declaration.h"        // for TypeDecl, TypeDecl::Data, Typ...
     22#include "SynTree/Expression.h"         // for Expression (ptr only), NameExpr
     23#include "SynTree/Mutator.h"            // for Mutator
     24#include "SynTree/Type.h"               // for PointerType, TypeInstType, Type
    2525
    2626namespace GenPoly {
  • src/GenPoly/ScrubTyVars.h

    r84993ff2 r08fc48f  
    1616#pragma once
    1717
    18 #include <string>
     18#include <assert.h>           // for assert
    1919
    20 #include "GenPoly.h"
     20#include "GenPoly.h"          // for TyVarMap, isPolyType, isDynType
     21#include "SynTree/Mutator.h"  // for Mutator
     22#include "SynTree/Type.h"     // for Type (ptr only), PointerType (ptr only)
    2123
    22 #include "SynTree/SynTree.h"
    23 #include "SynTree/Mutator.h"
     24class AlignofExpr;
     25class Expression;
     26class SizeofExpr;
    2427
    2528namespace GenPoly {
  • src/GenPoly/Specialize.cc

    r84993ff2 r08fc48f  
    1414//
    1515
    16 #include <cassert>
    17 
     16#include <cassert>                       // for assert, assertf
     17#include <iterator>                      // for back_insert_iterator, back_i...
     18#include <map>                           // for _Rb_tree_iterator, _Rb_tree_...
     19#include <memory>                        // for unique_ptr
     20#include <string>                        // for string
     21#include <tuple>                         // for get
     22#include <utility>                       // for pair
     23
     24#include "Common/SemanticError.h"        // for SemanticError
     25#include "Common/UniqueName.h"           // for UniqueName
     26#include "Common/utility.h"              // for group_iterate
     27#include "GenPoly.h"                     // for getFunctionType
     28#include "InitTweak/InitTweak.h"         // for isIntrinsicCallExpr
     29#include "Parser/LinkageSpec.h"          // for C
     30#include "PolyMutator.h"                 // for PolyMutator
     31#include "ResolvExpr/FindOpenVars.h"     // for findOpenVars
     32#include "ResolvExpr/TypeEnvironment.h"  // for OpenVarSet, AssertionSet
    1833#include "Specialize.h"
    19 #include "GenPoly.h"
    20 #include "PolyMutator.h"
    21 
    22 #include "Parser/ParseNode.h"
    23 
    24 #include "SynTree/Expression.h"
    25 #include "SynTree/Statement.h"
    26 #include "SynTree/Type.h"
    27 #include "SynTree/Attribute.h"
    28 #include "SynTree/TypeSubstitution.h"
    29 #include "SynTree/Mutator.h"
    30 #include "ResolvExpr/FindOpenVars.h"
    31 #include "Common/UniqueName.h"
    32 #include "Common/utility.h"
    33 #include "InitTweak/InitTweak.h"
    34 #include "Tuples/Tuples.h"
     34#include "SynTree/Attribute.h"           // for Attribute
     35#include "SynTree/Declaration.h"         // for FunctionDecl, DeclarationWit...
     36#include "SynTree/Expression.h"          // for ApplicationExpr, Expression
     37#include "SynTree/Label.h"               // for Label, noLabels
     38#include "SynTree/Mutator.h"             // for mutateAll
     39#include "SynTree/Statement.h"           // for CompoundStmt, DeclStmt, Expr...
     40#include "SynTree/Type.h"                // for FunctionType, TupleType, Type
     41#include "SynTree/TypeSubstitution.h"    // for TypeSubstitution
     42#include "SynTree/Visitor.h"             // for Visitor
    3543
    3644namespace GenPoly {
  • src/GenPoly/Specialize.h

    r84993ff2 r08fc48f  
    1616#pragma once
    1717
    18 #include <list>
     18#include <list>  // for list
    1919
    20 #include "SynTree/SynTree.h"
     20class Declaration;
    2121
    2222namespace GenPoly {
  • src/Virtual/ExpandCasts.cc

    r84993ff2 r08fc48f  
    1515
    1616#include "ExpandCasts.h"
    17 #include "Common/PassVisitor.h"
     17
     18#include <cassert>                 // for assert, assertf
     19#include <iterator>                // for back_inserter, inserter
     20#include <map>                     // for map, _Rb_tree_iterator, map<>::ite...
     21#include <string>                  // for string, allocator, operator==, ope...
     22#include <utility>                 // for pair
     23
     24#include "Common/PassVisitor.h"    // for PassVisitor
     25#include "Common/SemanticError.h"  // for SemanticError
     26#include "SynTree/Declaration.h"   // for ObjectDecl, StructDecl, FunctionDecl
     27#include "SynTree/Expression.h"    // for VirtualCastExpr, CastExpr, Address...
     28#include "SynTree/Mutator.h"       // for mutateAll
     29#include "SynTree/Type.h"          // for Type, PointerType, StructInstType
     30#include "SynTree/Visitor.h"       // for acceptAll
    1831
    1932namespace Virtual {
  • src/Virtual/ExpandCasts.h

    r84993ff2 r08fc48f  
    1616#pragma once
    1717
    18 #include <list>
    19 #include "SynTree/SynTree.h"
     18#include <list>  // for list
     19
     20class Declaration;
    2021
    2122namespace Virtual {
  • src/main.cc

    r84993ff2 r08fc48f  
    1515//
    1616
    17 #include <cassert>                          // for assertf
    1817#include <cxxabi.h>                         // for __cxa_demangle
    1918#include <execinfo.h>                       // for backtrace, backtrace_symbols
    2019#include <getopt.h>                         // for no_argument, optind, geto...
    2120#include <signal.h>                         // for signal, SIGABRT, SIGSEGV
     21#include <cassert>                          // for assertf
    2222#include <cstdio>                           // for fopen, FILE, fclose, stdin
    2323#include <cstdlib>                          // for exit, free, abort, EXIT_F...
    2424#include <cstring>                          // for index
    25 #include <fstream>                          // for ofstream
    2625#include <iostream>                         // for operator<<, basic_ostream
    2726#include <iterator>                         // for back_inserter
    2827#include <list>                             // for list
    29 #include <string>                           // for operator<<, allocator
     28#include <string>                           // for char_traits, operator<<
    3029
    3130#include "../config.h"                      // for CFA_LIBDIR
Note: See TracChangeset for help on using the changeset viewer.