Changeset d180746 for src/ControlStruct


Ignore:
Timestamp:
Aug 15, 2017, 11:45:34 AM (8 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/ControlStruct
Files:
12 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 {
Note: See TracChangeset for help on using the changeset viewer.