Changeset d180746 for src/ControlStruct
- Timestamp:
- Aug 15, 2017, 11:45:34 AM (8 years ago)
- 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
- Location:
- src/ControlStruct
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/ExceptTranslate.cc
r08fc48f rd180746 15 15 16 16 #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 24 38 25 39 namespace ControlStruct { -
src/ControlStruct/ExceptTranslate.h
r08fc48f rd180746 16 16 #pragma once 17 17 18 #include <list> 19 #include "SynTree/SynTree.h" 18 #include <list> // for list 19 20 class Declaration; 20 21 21 22 namespace ControlStruct { -
src/ControlStruct/ForExprMutator.cc
r08fc48f rd180746 14 14 // 15 15 16 #include "SynTree/Mutator.h"17 #include "SynTree/Statement.h" 16 #include <list> // for list, _List_iterator, list<>::iterator 17 18 18 #include "ForExprMutator.h" 19 #include "SynTree/Label.h" // for Label 20 #include "SynTree/Statement.h" // for Statement (ptr only), ForStmt, Compou... 19 21 20 22 namespace ControlStruct { -
src/ControlStruct/ForExprMutator.h
r08fc48f rd180746 16 16 #pragma once 17 17 18 #include "SynTree/Mutator.h" 19 #include "Common/utility.h" 18 class ForStmt; 19 class Statement; 20 20 21 21 namespace ControlStruct { -
src/ControlStruct/LabelFixer.cc
r08fc48f rd180746 14 14 // 15 15 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 18 20 21 #include "ControlStruct/LabelGenerator.h" // for LabelGenerator 19 22 #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... 27 27 28 28 namespace ControlStruct { -
src/ControlStruct/LabelFixer.h
r08fc48f rd180746 16 16 #pragma once 17 17 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 24 25 25 26 namespace ControlStruct { 26 27 /// normalizes label definitions and generates multi-level exit labels 28 class LabelGenerator; 29 27 30 class LabelFixer final : public Visitor { 28 31 typedef Visitor Parent; -
src/ControlStruct/LabelGenerator.cc
r08fc48f rd180746 14 14 // 15 15 16 #include <iostream> 17 #include < sstream>16 #include <iostream> // for operator<<, basic_ostream, ostringstream 17 #include <list> // for list 18 18 19 19 #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 23 23 24 24 namespace ControlStruct { -
src/ControlStruct/LabelGenerator.h
r08fc48f rd180746 16 16 #pragma once 17 17 18 #include "SynTree/SynTree.h" 19 #include <string> 18 #include <string> // for string 19 20 #include "SynTree/Label.h" // for Label 21 22 class Statement; 20 23 21 24 namespace ControlStruct { -
src/ControlStruct/MLEMutator.cc
r08fc48f rd180746 20 20 // where these labels are generated. 21 21 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 25 29 #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 29 33 30 34 namespace ControlStruct { -
src/ControlStruct/MLEMutator.h
r08fc48f rd180746 16 16 #pragma once 17 17 18 #include <map> 19 #include <list> 18 #include <list> // for list 19 #include <map> // for map 20 #include <string> // for string 20 21 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 27 26 28 27 namespace ControlStruct { 28 class LabelGenerator; 29 29 30 class MLEMutator : public Mutator { 30 31 class Entry; 32 31 33 typedef Mutator Parent; 32 34 public: -
src/ControlStruct/Mutate.cc
r08fc48f rd180746 14 14 // 15 15 16 #include <algorithm> 17 #include <iostream> 18 #include <cassert> 19 #include <list> 16 #include <iterator> // for back_inserter, inserter 17 #include <list> // for list 20 18 19 #include "Common/SemanticError.h" // for SemanticError 20 #include "ForExprMutator.h" // for ForExprMutator 21 #include "LabelFixer.h" // for LabelFixer 21 22 #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 25 26 //#include "ExceptMutator.h" 26 27 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 31 30 32 31 using namespace std; -
src/ControlStruct/Mutate.h
r08fc48f rd180746 16 16 #pragma once 17 17 18 #include <list> 19 #include <iostream> 18 #include <list> // for list 20 19 21 #include "SynTree/Declaration.h" 20 class Declaration; 22 21 23 22 namespace ControlStruct {
Note:
See TracChangeset
for help on using the changeset viewer.