Changeset d180746


Ignore:
Timestamp:
Aug 15, 2017, 11:45:34 AM (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:
ea6332d
Parents:
08fc48f
Message:

Big header cleaning pass - commit 2

Location:
src
Files:
34 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/ExceptTranslate.cc

    r08fc48f rd180746  
    1515
    1616#include "ExceptTranslate.h"
    17 #include "Common/PassVisitor.h"
    18 #include "SynTree/Statement.h"
    19 #include "SynTree/Declaration.h"
    20 #include "SynTree/Expression.h"
    21 #include "SynTree/Type.h"
    22 #include "SynTree/Attribute.h"
    23 #include "SynTree/VarExprReplacer.h"
     17
     18#include <stddef.h>                   // for NULL
     19#include <cassert>                    // for assert, assertf
     20#include <iterator>                   // for back_inserter, inserter
     21#include <string>                     // for string, operator==
     22
     23#include "Common/PassVisitor.h"       // for PassVisitor, WithGuards
     24#include "Common/SemanticError.h"     // for SemanticError
     25#include "Common/utility.h"           // for CodeLocation
     26#include "Parser/LinkageSpec.h"       // for Cforall
     27#include "SynTree/Attribute.h"        // for Attribute
     28#include "SynTree/Constant.h"         // for Constant
     29#include "SynTree/Declaration.h"      // for ObjectDecl, FunctionDecl, Struc...
     30#include "SynTree/Expression.h"       // for UntypedExpr, ConstantExpr, Name...
     31#include "SynTree/Initializer.h"      // for SingleInit, ListInit
     32#include "SynTree/Label.h"            // for Label, noLabels
     33#include "SynTree/Mutator.h"          // for mutateAll
     34#include "SynTree/Statement.h"        // for CompoundStmt, CatchStmt, ThrowStmt
     35#include "SynTree/Type.h"             // for FunctionType, Type, noQualifiers
     36#include "SynTree/VarExprReplacer.h"  // for VarExprReplacer, VarExprReplace...
     37#include "SynTree/Visitor.h"          // for acceptAll
    2438
    2539namespace ControlStruct {
  • src/ControlStruct/ExceptTranslate.h

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

    r08fc48f rd180746  
    1414//
    1515
    16 #include "SynTree/Mutator.h"
    17 #include "SynTree/Statement.h"
     16#include <list>                 // for list, _List_iterator, list<>::iterator
     17
    1818#include "ForExprMutator.h"
     19#include "SynTree/Label.h"      // for Label
     20#include "SynTree/Statement.h"  // for Statement (ptr only), ForStmt, Compou...
    1921
    2022namespace ControlStruct {
  • src/ControlStruct/ForExprMutator.h

    r08fc48f rd180746  
    1616#pragma once
    1717
    18 #include "SynTree/Mutator.h"
    19 #include "Common/utility.h"
     18class ForStmt;
     19class Statement;
    2020
    2121namespace ControlStruct {
  • src/ControlStruct/LabelFixer.cc

    r08fc48f rd180746  
    1414//
    1515
    16 #include <list>
    17 #include <cassert>
     16#include <cassert>                         // for assert
     17#include <list>                            // for list, _List_iterator, list...
     18#include <string>                          // for operator+, string, operator==
     19#include <utility>                         // for pair
    1820
     21#include "ControlStruct/LabelGenerator.h"  // for LabelGenerator
    1922#include "LabelFixer.h"
    20 #include "MLEMutator.h"
    21 #include "SynTree/Expression.h"
    22 #include "SynTree/Statement.h"
    23 #include "SynTree/Declaration.h"
    24 #include "Common/utility.h"
    25 
    26 #include <iostream>
     23#include "MLEMutator.h"                    // for MLEMutator
     24#include "SynTree/Declaration.h"           // for FunctionDecl
     25#include "SynTree/Expression.h"            // for NameExpr, Expression, Unty...
     26#include "SynTree/Statement.h"             // for Statement, BranchStmt, Com...
    2727
    2828namespace ControlStruct {
  • src/ControlStruct/LabelFixer.h

    r08fc48f rd180746  
    1616#pragma once
    1717
    18 #include "Common/utility.h"
    19 #include "SynTree/SynTree.h"
    20 #include "SynTree/Visitor.h"
    21 #include "SynTree/Label.h"
    22 #include "LabelGenerator.h"
    23 #include <map>
     18#include <list>                    // for list
     19#include <map>                     // for map
     20
     21#include "Common/SemanticError.h"  // for SemanticError
     22#include "SynTree/Label.h"         // for Label
     23#include "SynTree/Visitor.h"       // for Visitor
     24#include "SynTree/SynTree.h"       // for Visitor Nodes
    2425
    2526namespace ControlStruct {
    2627        /// normalizes label definitions and generates multi-level exit labels
     28class LabelGenerator;
     29
    2730        class LabelFixer final : public Visitor {
    2831                typedef Visitor Parent;
  • src/ControlStruct/LabelGenerator.cc

    r08fc48f rd180746  
    1414//
    1515
    16 #include <iostream>
    17 #include <sstream>
     16#include <iostream>             // for operator<<, basic_ostream, ostringstream
     17#include <list>                 // for list
    1818
    1919#include "LabelGenerator.h"
    20 #include "SynTree/Label.h"
    21 #include "SynTree/Attribute.h"
    22 #include "SynTree/Statement.h"
     20#include "SynTree/Attribute.h"  // for Attribute
     21#include "SynTree/Label.h"      // for Label, operator<<
     22#include "SynTree/Statement.h"  // for Statement
    2323
    2424namespace ControlStruct {
  • src/ControlStruct/LabelGenerator.h

    r08fc48f rd180746  
    1616#pragma once
    1717
    18 #include "SynTree/SynTree.h"
    19 #include <string>
     18#include <string>           // for string
     19
     20#include "SynTree/Label.h"  // for Label
     21
     22class Statement;
    2023
    2124namespace ControlStruct {
  • src/ControlStruct/MLEMutator.cc

    r08fc48f rd180746  
    2020// where these labels are generated.
    2121
    22 #include <cassert>
    23 #include <algorithm>
    24 
     22#include <ext/alloc_traits.h>              // for __alloc_traits<>::value_type
     23#include <algorithm>                       // for find, find_if
     24#include <cassert>                         // for assert, assertf
     25#include <memory>                          // for allocator_traits<>::value_...
     26
     27#include "Common/utility.h"                // for toString, operator+
     28#include "ControlStruct/LabelGenerator.h"  // for LabelGenerator
    2529#include "MLEMutator.h"
    26 #include "SynTree/Statement.h"
    27 #include "SynTree/Expression.h"
    28 #include "SynTree/Attribute.h"
     30#include "SynTree/Attribute.h"             // for Attribute
     31#include "SynTree/Expression.h"            // for Expression
     32#include "SynTree/Statement.h"             // for BranchStmt, CompoundStmt
    2933
    3034namespace ControlStruct {
  • src/ControlStruct/MLEMutator.h

    r08fc48f rd180746  
    1616#pragma once
    1717
    18 #include <map>
    19 #include <list>
     18#include <list>                    // for list
     19#include <map>                     // for map
     20#include <string>                  // for string
    2021
    21 #include "Common/utility.h"
    22 #include "SynTree/SynTree.h"
    23 #include "SynTree/Mutator.h"
    24 #include "SynTree/Label.h"
    25 
    26 #include "LabelGenerator.h"
     22#include "Common/SemanticError.h"  // for SemanticError
     23#include "SynTree/Label.h"         // for Label
     24#include "SynTree/Mutator.h"       // for Mutator
     25#include "SynTree/SynTree.h"       // for Visitor Nodes
    2726
    2827namespace ControlStruct {
     28class LabelGenerator;
     29
    2930        class MLEMutator : public Mutator {
    3031                class Entry;
     32
    3133                typedef Mutator Parent;
    3234          public:
  • src/ControlStruct/Mutate.cc

    r08fc48f rd180746  
    1414//
    1515
    16 #include <algorithm>
    17 #include <iostream>
    18 #include <cassert>
    19 #include <list>
     16#include <iterator>                // for back_inserter, inserter
     17#include <list>                    // for list
    2018
     19#include "Common/SemanticError.h"  // for SemanticError
     20#include "ForExprMutator.h"        // for ForExprMutator
     21#include "LabelFixer.h"            // for LabelFixer
    2122#include "Mutate.h"
    22 #include "LabelFixer.h"
    23 #include "MLEMutator.h"
    24 #include "ForExprMutator.h"
     23#include "PassVisitor.h"           // for mutateAll
     24#include "SynTree/Declaration.h"   // for Declaration
     25#include "SynTree/Mutator.h"       // for mutateAll
    2526//#include "ExceptMutator.h"
    2627
    27 #include "Common/utility.h"
    28 #include "Common/PassVisitor.h"
    29 
    30 #include "SynTree/Visitor.h"
     28#include "Common/PassVisitor.h"    // for PassVisitor
     29#include "SynTree/Visitor.h"       // for acceptAll
    3130
    3231using namespace std;
  • src/ControlStruct/Mutate.h

    r08fc48f rd180746  
    1616#pragma once
    1717
    18 #include <list>
    19 #include <iostream>
     18#include <list>  // for list
    2019
    21 #include "SynTree/Declaration.h"
     20class Declaration;
    2221
    2322namespace ControlStruct {
  • src/InitTweak/FixGlobalInit.cc

    r08fc48f rd180746  
    1515
    1616#include "FixGlobalInit.h"
    17 #include "InitTweak.h"
    18 #include "SynTree/Declaration.h"
    19 #include "SynTree/Type.h"
    20 #include "SynTree/Expression.h"
    21 #include "SynTree/Statement.h"
    22 #include "SynTree/Initializer.h"
    23 #include "SynTree/Visitor.h"
    24 #include "SynTree/Attribute.h"
    25 #include <algorithm>
     17
     18#include <assert.h>                // for assert
     19#include <stddef.h>                // for NULL
     20#include <algorithm>               // for replace_if
     21
     22#include "Common/SemanticError.h"  // for SemanticError
     23#include "Common/UniqueName.h"     // for UniqueName
     24#include "InitTweak.h"             // for isIntrinsicSingleArgCallStmt
     25#include "Parser/LinkageSpec.h"    // for C
     26#include "SynTree/Attribute.h"     // for Attribute
     27#include "SynTree/Constant.h"      // for Constant
     28#include "SynTree/Declaration.h"   // for FunctionDecl, ObjectDecl, Declaration
     29#include "SynTree/Expression.h"    // for ConstantExpr, Expression (ptr only)
     30#include "SynTree/Initializer.h"   // for ConstructorInit, Initializer
     31#include "SynTree/Label.h"         // for Label, noLabels
     32#include "SynTree/Statement.h"     // for CompoundStmt, Statement (ptr only)
     33#include "SynTree/Type.h"          // for Type, Type::StorageClasses, Functi...
     34#include "SynTree/Visitor.h"       // for acceptAll, Visitor
    2635
    2736namespace InitTweak {
  • src/InitTweak/FixGlobalInit.h

    r08fc48f rd180746  
    1616#pragma once
    1717
    18 #include <string>
    19 #include <list>
     18#include <list>    // for list
     19#include <string>  // for string
    2020
    21 #include "SynTree/SynTree.h"
    22 #include "SynTree/Declaration.h"
     21class Declaration;
    2322
    2423namespace InitTweak {
  • src/InitTweak/FixInit.cc

    r08fc48f rd180746  
    1414//
    1515
    16 #include <stack>
    17 #include <list>
    18 #include <iterator>
    19 #include <algorithm>
    20 #include <unordered_map>
    21 #include <unordered_set>
    22 
    23 #include "InitTweak.h"
    24 #include "GenInit.h"
     16#include <stddef.h>                    // for NULL
     17#include <algorithm>                   // for set_difference, copy_if
     18#include <cassert>                     // for assert, safe_dynamic_cast
     19#include <iostream>                    // for operator<<, ostream, basic_ost...
     20#include <iterator>                    // for insert_iterator, back_inserter
     21#include <list>                        // for _List_iterator, list, list<>::...
     22#include <map>                         // for _Rb_tree_iterator, _Rb_tree_co...
     23#include <memory>                      // for allocator_traits<>::value_type
     24#include <set>                         // for set, set<>::value_type
     25#include <unordered_map>               // for unordered_map, unordered_map<>...
     26#include <unordered_set>               // for unordered_set
     27#include <utility>                     // for pair
     28
     29#include "CodeGen/GenType.h"           // for genPrettyType
     30#include "Common/PassVisitor.h"        // for PassVisitor, WithStmtsToAdd
     31#include "Common/SemanticError.h"      // for SemanticError
     32#include "Common/UniqueName.h"         // for UniqueName
     33#include "Common/utility.h"            // for CodeLocation, ValueGuard, toSt...
     34#include "FixGlobalInit.h"             // for fixGlobalInit
    2535#include "FixInit.h"
    26 #include "FixGlobalInit.h"
    27 #include "CodeGen/GenType.h"  // for warning/error messages
    28 #include "Common/PassVisitor.h"
    29 #include "GenPoly/DeclMutator.h"
    30 #include "GenPoly/PolyMutator.h"
    31 #include "ResolvExpr/Resolver.h"
    32 #include "ResolvExpr/typeops.h"
    33 #include "SymTab/Autogen.h"
    34 #include "SymTab/Indexer.h"
    35 #include "SynTree/AddStmtVisitor.h"
    36 #include "SynTree/Attribute.h"
    37 #include "SynTree/Declaration.h"
    38 #include "SynTree/Expression.h"
    39 #include "SynTree/Initializer.h"
    40 #include "SynTree/Mutator.h"
    41 #include "SynTree/Statement.h"
    42 #include "SynTree/Type.h"
    43 #include "Tuples/Tuples.h"
     36#include "GenInit.h"                   // for genCtorDtor
     37#include "GenPoly/DeclMutator.h"       // for DeclMutator
     38#include "GenPoly/GenPoly.h"           // for getFunctionType
     39#include "GenPoly/PolyMutator.h"       // for PolyMutator
     40#include "InitTweak.h"                 // for getFunctionName, getCallArg
     41#include "Parser/LinkageSpec.h"        // for C, Spec, Cforall, isBuiltin
     42#include "PassVisitor.h"               // for mutateAll
     43#include "ResolvExpr/Resolver.h"       // for findVoidExpression
     44#include "ResolvExpr/typeops.h"        // for typesCompatible
     45#include "SymTab/Autogen.h"            // for genImplicitCall
     46#include "SymTab/Indexer.h"            // for Indexer
     47#include "SymTab/Mangler.h"            // for Mangler
     48#include "SynTree/AddStmtVisitor.h"    // for AddStmtVisitor
     49#include "SynTree/Attribute.h"         // for Attribute
     50#include "SynTree/Constant.h"          // for Constant
     51#include "SynTree/Declaration.h"       // for ObjectDecl, FunctionDecl, Decl...
     52#include "SynTree/Expression.h"        // for UniqueExpr, VariableExpr, Unty...
     53#include "SynTree/Initializer.h"       // for ConstructorInit, SingleInit
     54#include "SynTree/Label.h"             // for Label, noLabels, operator<
     55#include "SynTree/Mutator.h"           // for mutateAll, Mutator, maybeMutate
     56#include "SynTree/Statement.h"         // for ExprStmt, CompoundStmt, Branch...
     57#include "SynTree/Type.h"              // for Type, Type::StorageClasses
     58#include "SynTree/TypeSubstitution.h"  // for TypeSubstitution, operator<<
     59#include "SynTree/Visitor.h"           // for acceptAll, maybeAccept
     60#include "Tuples/Tuples.h"             // for isTtype
    4461
    4562bool ctordtorp = false; // print all debug
  • src/InitTweak/FixInit.h

    r08fc48f rd180746  
    1616#pragma once
    1717
    18 #include <string>
    19 #include <list>
     18#include <list>    // for list
     19#include <string>  // for string
    2020
    21 #include "SynTree/SynTree.h"
    22 #include "SynTree/Declaration.h"
    23 #include "SynTree/Mutator.h"
     21class Declaration;
    2422
    2523namespace InitTweak {
  • src/InitTweak/GenInit.cc

    r08fc48f rd180746  
    1414//
    1515
    16 #include <stack>
    17 #include <list>
    18 
    19 #include "InitTweak.h"
     16#include <stddef.h>                // for NULL
     17#include <algorithm>               // for any_of
     18#include <cassert>                 // for assert, safe_dynamic_cast, assertf
     19#include <iterator>                // for back_inserter, inserter, back_inse...
     20#include <list>                    // for _List_iterator, list
     21
     22#include "Common/PassVisitor.h"    // for PassVisitor, WithGuards, WithShort...
     23#include "Common/SemanticError.h"  // for SemanticError
     24#include "Common/UniqueName.h"     // for UniqueName
     25#include "Common/utility.h"        // for ValueGuard, maybeClone
    2026#include "GenInit.h"
    21 
    22 #include "Common/PassVisitor.h"
    23 
    24 #include "GenPoly/DeclMutator.h"
    25 #include "GenPoly/PolyMutator.h"
    26 #include "GenPoly/ScopedSet.h"
    27 
    28 #include "ResolvExpr/typeops.h"
    29 
    30 #include "SynTree/Declaration.h"
    31 #include "SynTree/Expression.h"
    32 #include "SynTree/Initializer.h"
    33 #include "SynTree/Mutator.h"
    34 #include "SynTree/Statement.h"
    35 #include "SynTree/Type.h"
    36 
    37 #include "SymTab/Autogen.h"
    38 #include "SymTab/Mangler.h"
     27#include "GenPoly/DeclMutator.h"   // for DeclMutator
     28#include "GenPoly/GenPoly.h"       // for getFunctionType, isPolyType
     29#include "GenPoly/ScopedSet.h"     // for ScopedSet, ScopedSet<>::const_iter...
     30#include "InitTweak.h"             // for isConstExpr, InitExpander, checkIn...
     31#include "Parser/LinkageSpec.h"    // for isOverridable, C
     32#include "PassVisitor.h"           // for bool_ref, acceptAll, mutateAll
     33#include "SymTab/Autogen.h"        // for genImplicitCall, SizeType
     34#include "SymTab/Mangler.h"        // for Mangler
     35#include "SynTree/Declaration.h"   // for ObjectDecl, DeclarationWithType
     36#include "SynTree/Expression.h"    // for VariableExpr, UntypedExpr, Address...
     37#include "SynTree/Initializer.h"   // for ConstructorInit, SingleInit, Initi...
     38#include "SynTree/Label.h"         // for Label
     39#include "SynTree/Mutator.h"       // for mutateAll
     40#include "SynTree/Statement.h"     // for CompoundStmt, ImplicitCtorDtorStmt
     41#include "SynTree/Type.h"          // for Type, ArrayType, Type::Qualifiers
     42#include "SynTree/Visitor.h"       // for acceptAll, maybeAccept
    3943
    4044namespace InitTweak {
  • src/InitTweak/GenInit.h

    r08fc48f rd180746  
    1616#pragma once
    1717
    18 #include <string>
    19 #include <list>
     18#include <list>               // for list
     19#include <string>             // for string
    2020
    21 #include "SynTree/SynTree.h"
    22 #include "SynTree/Declaration.h"
    23 #include "SynTree/Mutator.h"
     21#include "SynTree/SynTree.h"  // for Visitor Nodes
    2422
    2523namespace InitTweak {
  • src/InitTweak/InitTweak.cc

    r08fc48f rd180746  
    1 #include <algorithm>
     1#include <stddef.h>                // for NULL
     2#include <algorithm>               // for find, all_of
     3#include <cassert>                 // for assertf, assert, safe_dynamic_cast
     4#include <iostream>                // for ostream, cerr, endl
     5#include <iterator>                // for back_insert_iterator, back_inserter
     6#include <memory>                  // for __shared_ptr
     7
     8#include "Common/SemanticError.h"  // for SemanticError
     9#include "Common/UniqueName.h"     // for UniqueName
     10#include "Common/utility.h"        // for toString, deleteAll, maybeClone
     11#include "GenPoly/GenPoly.h"       // for getFunctionType
    212#include "InitTweak.h"
    3 #include "SynTree/Visitor.h"
    4 #include "SynTree/Statement.h"
    5 #include "SynTree/Initializer.h"
    6 #include "SynTree/Expression.h"
    7 #include "SynTree/Attribute.h"
    8 #include "GenPoly/GenPoly.h"
    9 #include "ResolvExpr/typeops.h"
     13#include "Parser/LinkageSpec.h"    // for Spec, isBuiltin, Intrinsic
     14#include "ResolvExpr/typeops.h"    // for typesCompatibleIgnoreQualifiers
     15#include "SymTab/Indexer.h"        // for Indexer
     16#include "SynTree/Attribute.h"     // for Attribute
     17#include "SynTree/Constant.h"      // for Constant
     18#include "SynTree/Declaration.h"   // for ObjectDecl, DeclarationWithType
     19#include "SynTree/Expression.h"    // for Expression, UntypedExpr, Applicati...
     20#include "SynTree/Initializer.h"   // for Initializer, ListInit, Designation
     21#include "SynTree/Label.h"         // for Label, noLabels
     22#include "SynTree/Statement.h"     // for CompoundStmt, ExprStmt, BranchStmt
     23#include "SynTree/Type.h"          // for FunctionType, ArrayType, PointerType
     24#include "SynTree/Visitor.h"       // for Visitor, maybeAccept
     25
     26class UntypedValofExpr;
    1027
    1128namespace InitTweak {
  • src/InitTweak/InitTweak.h

    r08fc48f rd180746  
    1616#pragma once
    1717
    18 #include <string>
    19 #include <list>
     18#include <bits/shared_ptr.h>  // for shared_ptr
     19#include <list>               // for list
     20#include <string>             // for string, allocator
    2021
    21 #include "SynTree/SynTree.h"
    22 #include "SynTree/Declaration.h"
    23 #include "SynTree/Mutator.h"
     22#include "SynTree/SynTree.h"  // for Visitor Nodes
    2423
    2524// helper functions for initialization
     
    105104
    106105                class ExpanderImpl;
     106
    107107                typedef std::list< Expression * > IndexList;
    108108        private:
  • src/Parser/DeclarationNode.cc

    r08fc48f rd180746  
    1414//
    1515
    16 #include <string>
    17 #include <list>
    18 #include <iterator>
    19 #include <algorithm>
    20 #include <cassert>
    21 
    22 #include "TypeData.h"
    23 
    24 #include "SynTree/Attribute.h"
    25 #include "SynTree/Declaration.h"
    26 #include "SynTree/Expression.h"
    27 
    28 #include "TypedefTable.h"
     16#include <cassert>                 // for assert, assertf, safe_dynamic_cast
     17#include <iterator>                // for back_insert_iterator
     18#include <list>                    // for list
     19#include <memory>                  // for unique_ptr
     20#include <ostream>                 // for operator<<, ostream, basic_ostream
     21#include <string>                  // for string, operator+, allocator, char...
     22
     23#include "Common/SemanticError.h"  // for SemanticError
     24#include "Common/UniqueName.h"     // for UniqueName
     25#include "Common/utility.h"        // for maybeClone, maybeBuild, CodeLocation
     26#include "Parser/LinkageSpec.h"    // for Spec, linkageName, Cforall
     27#include "Parser/ParseNode.h"      // for DeclarationNode, ExpressionNode
     28#include "SynTree/Attribute.h"     // for Attribute
     29#include "SynTree/Declaration.h"   // for TypeDecl, ObjectDecl, Declaration
     30#include "SynTree/Expression.h"    // for Expression, ConstantExpr
     31#include "SynTree/Statement.h"     // for AsmStmt
     32#include "SynTree/Type.h"          // for Type, Type::StorageClasses, Type::...
     33#include "TypeData.h"              // for TypeData, TypeData::Aggregate_t
     34#include "TypedefTable.h"          // for TypedefTable, TypedefTable::kind_t...
     35
     36class Initializer;
     37
    2938extern TypedefTable typedefTable;
    3039
  • src/Parser/ExpressionNode.cc

    r08fc48f rd180746  
    1414//
    1515
    16 #include <climits>                                                                              // access INT_MAX, UINT_MAX, LONG_MAX, ULONG_MAX, LLONG_MAX
    17 #include <sstream>
    18 
    19 #include "ParseNode.h"
    20 #include "TypeData.h"
    21 #include "SynTree/Constant.h"
    22 #include "SynTree/Expression.h"
    23 #include "SynTree/Declaration.h"
    24 #include "parserutility.h"
     16#include <assert.h>                // for assert
     17#include <stdio.h>                 // for sscanf, size_t
     18#include <climits>                 // for LLONG_MAX, LONG_MAX, INT_MAX, UINT...
     19#include <list>                    // for list
     20#include <sstream>                 // for basic_istream::operator>>, basic_i...
     21#include <string>                  // for string, operator+, operator==
     22
     23#include "Common/SemanticError.h"  // for SemanticError
     24#include "Common/utility.h"        // for maybeMoveBuild, maybeBuild, CodeLo...
     25#include "ParseNode.h"             // for ExpressionNode, maybeMoveBuildType
     26#include "SynTree/Constant.h"      // for Constant
     27#include "SynTree/Declaration.h"   // for EnumDecl, StructDecl, UnionDecl
     28#include "SynTree/Expression.h"    // for Expression, ConstantExpr, NameExpr
     29#include "SynTree/Statement.h"     // for CompoundStmt, Statement
     30#include "SynTree/Type.h"          // for BasicType, Type, Type::Qualifiers
     31#include "parserutility.h"         // for notZeroExpr
     32
     33class Initializer;
    2534
    2635using namespace std;
  • src/Parser/InitializerNode.cc

    r08fc48f rd180746  
    1414//
    1515
    16 #include <cassert>
    17 #include <iostream>
     16#include <iostream>                // for operator<<, ostream, basic_ostream
     17#include <list>                    // for list
     18#include <string>                  // for operator<<, string
     19
    1820using namespace std;
    1921
    20 #include "ParseNode.h"
    21 #include "SynTree/Expression.h"
    22 #include "SynTree/Initializer.h"
     22#include "Common/SemanticError.h"  // for SemanticError
     23#include "Common/utility.h"        // for maybeBuild
     24#include "ParseNode.h"             // for InitializerNode, ExpressionNode
     25#include "SynTree/Expression.h"    // for Expression
     26#include "SynTree/Initializer.h"   // for Initializer, ListInit, SingleInit
    2327
    2428InitializerNode::InitializerNode( ExpressionNode * _expr, bool aggrp, ExpressionNode * des )
  • src/Parser/ParseNode.h

    r08fc48f rd180746  
    1616#pragma once
    1717
    18 #include <string>
    19 #include <list>
    20 #include <iterator>
    21 #include <memory>
    22 
    23 #include "Parser/LinkageSpec.h"
    24 #include "SynTree/Type.h"
    25 #include "SynTree/Expression.h"
    26 #include "SynTree/Statement.h"
    27 #include "SynTree/Label.h"
    28 #include "Common/utility.h"
    29 #include "Common/UniqueName.h"
    30 
     18#include <algorithm>               // for move
     19#include <cassert>                 // for assert, assertf
     20#include <iosfwd>                  // for ostream
     21#include <iterator>                // for back_insert_iterator
     22#include <list>                    // for list
     23#include <memory>                  // for unique_ptr, pointer_traits
     24#include <string>                  // for string
     25
     26#include "Common/SemanticError.h"  // for SemanticError
     27#include "Common/utility.h"        // for maybeClone, CodeLocation, maybeBuild
     28#include "Parser/LinkageSpec.h"    // for Spec
     29#include "SynTree/Expression.h"    // for Expression, ConstantExpr (ptr only)
     30#include "SynTree/Label.h"         // for Label
     31#include "SynTree/Statement.h"     // for Statement, BranchStmt, BranchStmt:...
     32#include "SynTree/Type.h"          // for Type, Type::FuncSpecifiers, Type::...
     33
     34class Attribute;
     35class Declaration;
     36class DeclarationNode;
     37class DeclarationWithType;
     38class ExpressionNode;
     39class Initializer;
    3140class StatementNode;
    32 class CompoundStmtNode;
    33 class DeclarationNode;
    34 class ExpressionNode;
    35 class InitializerNode;
    36 class Attribute;
     41class UniqueName;
    3742
    3843//##############################################################################
  • src/Parser/StatementNode.cc

    r08fc48f rd180746  
    1414//
    1515
    16 #include <list>
    17 #include <algorithm>
    18 #include <cassert>
    19 
    20 #include "ParseNode.h"
    21 #include "SynTree/Statement.h"
    22 #include "SynTree/Expression.h"
    23 #include "parserutility.h"
    24 #include "Common/utility.h"
     16#include <cassert>                 // for assert, safe_dynamic_cast, assertf
     17#include <list>                    // for list
     18#include <memory>                  // for unique_ptr
     19#include <string>                  // for string
     20
     21#include "Common/SemanticError.h"  // for SemanticError
     22#include "Common/utility.h"        // for maybeMoveBuild, maybeBuild
     23#include "ParseNode.h"             // for StatementNode, ExpressionNode, bui...
     24#include "SynTree/Expression.h"    // for Expression, ConstantExpr
     25#include "SynTree/Label.h"         // for Label, noLabels
     26#include "SynTree/Statement.h"     // for Statement, BranchStmt, CaseStmt
     27#include "parserutility.h"         // for notZeroExpr
     28
     29class Declaration;
    2530
    2631using namespace std;
  • src/Parser/TypeData.cc

    r08fc48f rd180746  
    1414//
    1515
    16 #include <cassert>
    17 #include <algorithm>
    18 #include <iterator>
    19 #include "Common/utility.h"
     16#include <cassert>                 // for assert
     17#include <ostream>                 // for operator<<, ostream, basic_ostream
     18
     19#include "Common/SemanticError.h"  // for SemanticError
     20#include "Common/utility.h"        // for maybeClone, maybeBuild, maybeMoveB...
     21#include "Parser/ParseNode.h"      // for DeclarationNode, ExpressionNode
     22#include "SynTree/Declaration.h"   // for TypeDecl, ObjectDecl, FunctionDecl
     23#include "SynTree/Expression.h"    // for Expression, ConstantExpr (ptr only)
     24#include "SynTree/Initializer.h"   // for SingleInit, Initializer (ptr only)
     25#include "SynTree/Statement.h"     // for CompoundStmt, Statement
     26#include "SynTree/Type.h"          // for BasicType, Type, Type::ForallList
    2027#include "TypeData.h"
    21 #include "SynTree/Type.h"
    22 #include "SynTree/Declaration.h"
    23 #include "SynTree/Expression.h"
    24 #include "SynTree/Statement.h"
    25 #include "SynTree/Initializer.h"
     28
     29class Attribute;
     30
    2631using namespace std;
    2732
  • src/Parser/TypeData.h

    r08fc48f rd180746  
    1616#pragma once
    1717
    18 #include "ParseNode.h"
    19 #include "SynTree/Type.h"
     18#include <iosfwd>                // for ostream
     19#include <list>                  // for list
     20#include <string>                // for string
     21
     22#include "ParseNode.h"           // for DeclarationNode, DeclarationNode::Ag...
     23#include "Parser/LinkageSpec.h"  // for Spec
     24#include "SynTree/Type.h"        // for Type, ReferenceToType (ptr only)
     25#include "SynTree/SynTree.h"     // for Visitor Nodes
    2026
    2127struct TypeData {
  • src/Parser/TypedefTable.cc

    r08fc48f rd180746  
    1414//
    1515
    16 #include <map>
    17 #include <list>
    18 #include <cassert>
     16#include <ext/alloc_traits.h>    // for __alloc_traits<>::value_type
     17#include <cassert>               // for assert
     18#include <list>                  // for list, _List_iterator, list<>::iterator
     19#include <map>                   // for _Rb_tree_iterator, _Rb_tree_const_it...
     20#include <memory>                // for allocator_traits<>::value_type
     21#include <utility>               // for pair
     22
     23#include "Parser/ParserTypes.h"  // for typedefTable
     24#include "Parser/parser.hh"      // for IDENTIFIER
    1925#include "TypedefTable.h"
     26
    2027using namespace std;
    2128
    2229#if 0
    2330#include <iostream>
     31
    2432#define debugPrint( x ) cerr << x
    2533#else
  • src/Parser/TypedefTable.h

    r08fc48f rd180746  
    1616#pragma once
    1717
    18 #include <map>
    19 #include <list>
    20 #include <string>
    21 #include <stack>
     18#include <list>       // for list
     19#include <map>        // for map, map<>::value_compare
     20#include <stack>      // for stack
     21#include <string>     // for string
    2222
    23 #include "ParserTypes.h"
    24 #include "parser.hh"
     23#include "parser.hh"  // for IDENTIFIER, TYPEDEFname, TYPEGENname
    2524
    2625class TypedefTable {
  • src/Parser/parserutility.cc

    r08fc48f rd180746  
    1515
    1616#include "parserutility.h"
    17 #include "SynTree/Type.h"
    18 #include "SynTree/Expression.h"
     17
     18#include <list>                  // for list
     19#include <string>                // for string
     20
     21#include "SynTree/Constant.h"    // for Constant
     22#include "SynTree/Expression.h"  // for UntypedExpr, CastExpr, ConstantExpr
     23#include "SynTree/Type.h"        // for BasicType, ZeroType, BasicType::Kind...
    1924
    2025// rewrite
  • src/Parser/parserutility.h

    r08fc48f rd180746  
    1616#pragma once
    1717
    18 #include "SynTree/SynTree.h"
     18class Expression;
    1919
    2020Expression *notZeroExpr( Expression *orig );
  • src/SymTab/Autogen.cc

    r08fc48f rd180746  
    1515#include "Autogen.h"
    1616
    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
    25 
    26 #include "AddVisit.h"              // for addVisit
    27 #include "Common/ScopedMap.h"      // for ScopedMap<>::const_iterator, Scope...
    28 #include "Common/SemanticError.h"  // for SemanticError
    29 #include "Common/utility.h"        // for cloneAll, operator+
    30 #include "GenPoly/DeclMutator.h"   // for DeclMutator
    31 #include "GenPoly/ScopedSet.h"     // for ScopedSet, ScopedSet<>::iterator
    32 #include "SymTab/Mangler.h"        // for Mangler
    33 #include "SynTree/Mutator.h"       // for maybeMutate
    34 #include "SynTree/Statement.h"     // for CompoundStmt, ReturnStmt, ExprStmt
    35 #include "SynTree/Type.h"          // for FunctionType, Type, TypeInstType
    36 #include "SynTree/Visitor.h"       // for maybeAccept, Visitor, acceptAll
    37 
    38 class Attribute;
     17#include <cassert>                // for assert, assertf
     18#include <cstddef>                // for NULL
     19
     20#include "AddVisit.h"             // for addVisit
     21#include "Common/ScopedMap.h"     // for ScopedMap
     22#include "GenPoly/DeclMutator.h"  // for DeclMutator
     23#include "GenPoly/ScopedSet.h"    // for ScopedSet
     24#include "Parser/LinkageSpec.h"   // for AutoGen, Intrinsic, Spec
     25#include "SynTree/Statement.h"    // for SwitchStmt (ptr only), CompoundStmt
     26#include "SynTree/Type.h"         // for Type, ArrayType, Type::StorageClasses
     27#include "SynTree/Visitor.h"      // for Visitor
    3928
    4029namespace SymTab {
  • src/SymTab/Autogen.h

    r08fc48f rd180746  
    1717
    1818#include <cassert>                // for assert
    19 #include <iterator>               // for back_insert_iterator, back_inserter
    20 #include <list>                   // for list
    21 #include <string>                 // for string, operator==
     19#include <string>                 // for string
    2220
    2321#include "Common/UniqueName.h"    // for UniqueName
    2422#include "InitTweak/InitTweak.h"  // for InitExpander
    25 #include "Parser/LinkageSpec.h"   // for C
    2623#include "SynTree/Constant.h"     // for Constant
    27 #include "SynTree/Declaration.h"  // for ObjectDecl, Declaration (ptr only)
    28 #include "SynTree/Expression.h"   // for UntypedExpr, NameExpr, VariableExpr
    29 #include "SynTree/Initializer.h"  // for SingleInit
    30 #include "SynTree/Label.h"        // for Label, noLabels
    31 #include "SynTree/Statement.h"    // for Statement (ptr only), CompoundStmt
     24#include "SynTree/Declaration.h"  // for DeclarationWithType, ObjectDecl
     25#include "SynTree/Expression.h"   // for NameExpr, ConstantExpr, UntypedExpr...
    3226#include "SynTree/Type.h"         // for Type, ArrayType, Type::Qualifiers
     27
     28class CompoundStmt;
     29class Statement;
    3330
    3431namespace SymTab {
  • src/SymTab/Validate.cc

    r08fc48f rd180746  
    4040#include "Validate.h"
    4141
    42 #include <algorithm>                   // for move, transform
    43 #include <cassert>                     // for safe_dynamic_cast, assertf
     42#include <cassert>                     // for assertf, assert
    4443#include <cstddef>                     // for size_t
    45 #include <iterator>                    // for back_inserter, inserter, back_...
    46 #include <list>                        // for list, _List_iterator, list<>::...
    47 #include <map>                         // for _Rb_tree_iterator, map, map<>:...
    48 #include <memory>                      // for unique_ptr, allocator
    49 #include <string>                      // for string, operator+, operator==
    50 #include <tuple>                       // for get
    51 #include <type_traits>                 // for remove_reference<>::type
    52 #include <utility>                     // for pair, make_pair
    53 
    54 #include "AddVisit.h"                  // for addVisit
    55 #include "Autogen.h"                   // for SizeType, autogenerateRoutines
    56 #include "CodeGen/CodeGenerator.h"     // for genName
     44#include <list>                        // for list
     45#include <string>                      // for string
     46#include <utility>                     // for pair
     47
    5748#include "Common/PassVisitor.h"        // for PassVisitor, WithDeclsToAdd
    58 #include "Common/ScopedMap.h"          // for ScopedMap<>::const_iterator
     49#include "Common/ScopedMap.h"          // for ScopedMap
    5950#include "Common/SemanticError.h"      // for SemanticError
    6051#include "Common/UniqueName.h"         // for UniqueName
    61 #include "Common/utility.h"            // for operator+, cloneAll, deleteAll
    62 #include "Concurrency/Keywords.h"      // for applyKeywords, implementMutexF...
    6352#include "FixFunction.h"               // for FixFunction
    6453#include "Indexer.h"                   // for Indexer
    65 #include "InitTweak/InitTweak.h"       // for isCtorDtor, isCtorDtorAssign
    66 #include "Parser/LinkageSpec.h"        // for C, Cforall
    67 #include "Parser/ParseNode.h"          // for DeclarationNode, DeclarationNo...
    68 #include "PassVisitor.h"               // for acceptAll, mutateAll
    69 #include "ResolvExpr/typeops.h"        // for extractResultType, typesCompat...
    70 #include "SynTree/Attribute.h"         // for noAttributes, Attribute
     54#include "InitTweak/InitTweak.h"       // for isCtorDtorAssign
     55#include "Parser/LinkageSpec.h"        // for C
     56#include "ResolvExpr/typeops.h"        // for typesCompatible
    7157#include "SynTree/Constant.h"          // for Constant
    72 #include "SynTree/Declaration.h"       // for EnumDecl, StructDecl, TypedefDecl
    73 #include "SynTree/Expression.h"        // for TypeExpr, CompoundLiteralExpr
    74 #include "SynTree/Initializer.h"       // for ListInit, Initializer, noDesig...
    75 #include "SynTree/Mutator.h"           // for mutateAll, Mutator
    76 #include "SynTree/Statement.h"         // for CompoundStmt, DeclStmt, Return...
    77 #include "SynTree/Type.h"              // for Type, TypeInstType, TraitInstType
    78 #include "SynTree/TypeSubstitution.h"  // for TypeSubstitution, applySubstit...
    79 #include "SynTree/Visitor.h"           // for acceptAll, Visitor
     58#include "SynTree/Declaration.h"       // for ObjectDecl, DeclarationWithType
     59#include "SynTree/Expression.h"        // for CompoundLiteralExpr, Expressio...
     60#include "SynTree/Initializer.h"       // for ListInit, Initializer
     61#include "SynTree/Label.h"             // for operator==, Label
     62#include "SynTree/Mutator.h"           // for Mutator
     63#include "SynTree/Type.h"              // for Type, TypeInstType, EnumInstType
     64#include "SynTree/TypeSubstitution.h"  // for TypeSubstitution
     65#include "SynTree/Visitor.h"           // for Visitor
     66
     67class CompoundStmt;
     68class ReturnStmt;
     69class SwitchStmt;
    8070
    8171#define debugPrint( x ) if ( doDebug ) { std::cout << x; }
Note: See TracChangeset for help on using the changeset viewer.