Changeset d180746 for src/InitTweak


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/InitTweak
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • 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:
Note: See TracChangeset for help on using the changeset viewer.