Changeset d180746
- Timestamp:
- Aug 15, 2017, 11:45:34 AM (7 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
- Files:
-
- 34 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 { -
src/InitTweak/FixGlobalInit.cc
r08fc48f rd180746 15 15 16 16 #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 26 35 27 36 namespace InitTweak { -
src/InitTweak/FixGlobalInit.h
r08fc48f rd180746 16 16 #pragma once 17 17 18 #include < string>19 #include < list>18 #include <list> // for list 19 #include <string> // for string 20 20 21 #include "SynTree/SynTree.h" 22 #include "SynTree/Declaration.h" 21 class Declaration; 23 22 24 23 namespace InitTweak { -
src/InitTweak/FixInit.cc
r08fc48f rd180746 14 14 // 15 15 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 25 35 #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 44 61 45 62 bool ctordtorp = false; // print all debug -
src/InitTweak/FixInit.h
r08fc48f rd180746 16 16 #pragma once 17 17 18 #include < string>19 #include < list>18 #include <list> // for list 19 #include <string> // for string 20 20 21 #include "SynTree/SynTree.h" 22 #include "SynTree/Declaration.h" 23 #include "SynTree/Mutator.h" 21 class Declaration; 24 22 25 23 namespace InitTweak { -
src/InitTweak/GenInit.cc
r08fc48f rd180746 14 14 // 15 15 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 20 26 #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 39 43 40 44 namespace InitTweak { -
src/InitTweak/GenInit.h
r08fc48f rd180746 16 16 #pragma once 17 17 18 #include < string>19 #include < list>18 #include <list> // for list 19 #include <string> // for string 20 20 21 #include "SynTree/SynTree.h" 22 #include "SynTree/Declaration.h" 23 #include "SynTree/Mutator.h" 21 #include "SynTree/SynTree.h" // for Visitor Nodes 24 22 25 23 namespace 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 2 12 #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 26 class UntypedValofExpr; 10 27 11 28 namespace InitTweak { -
src/InitTweak/InitTweak.h
r08fc48f rd180746 16 16 #pragma once 17 17 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 20 21 21 #include "SynTree/SynTree.h" 22 #include "SynTree/Declaration.h" 23 #include "SynTree/Mutator.h" 22 #include "SynTree/SynTree.h" // for Visitor Nodes 24 23 25 24 // helper functions for initialization … … 105 104 106 105 class ExpanderImpl; 106 107 107 typedef std::list< Expression * > IndexList; 108 108 private: -
src/Parser/DeclarationNode.cc
r08fc48f rd180746 14 14 // 15 15 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 36 class Initializer; 37 29 38 extern TypedefTable typedefTable; 30 39 -
src/Parser/ExpressionNode.cc
r08fc48f rd180746 14 14 // 15 15 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 33 class Initializer; 25 34 26 35 using namespace std; -
src/Parser/InitializerNode.cc
r08fc48f rd180746 14 14 // 15 15 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 18 20 using namespace std; 19 21 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 23 27 24 28 InitializerNode::InitializerNode( ExpressionNode * _expr, bool aggrp, ExpressionNode * des ) -
src/Parser/ParseNode.h
r08fc48f rd180746 16 16 #pragma once 17 17 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 34 class Attribute; 35 class Declaration; 36 class DeclarationNode; 37 class DeclarationWithType; 38 class ExpressionNode; 39 class Initializer; 31 40 class StatementNode; 32 class CompoundStmtNode; 33 class DeclarationNode; 34 class ExpressionNode; 35 class InitializerNode; 36 class Attribute; 41 class UniqueName; 37 42 38 43 //############################################################################## -
src/Parser/StatementNode.cc
r08fc48f rd180746 14 14 // 15 15 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 29 class Declaration; 25 30 26 31 using namespace std; -
src/Parser/TypeData.cc
r08fc48f rd180746 14 14 // 15 15 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 20 27 #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 29 class Attribute; 30 26 31 using namespace std; 27 32 -
src/Parser/TypeData.h
r08fc48f rd180746 16 16 #pragma once 17 17 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 20 26 21 27 struct TypeData { -
src/Parser/TypedefTable.cc
r08fc48f rd180746 14 14 // 15 15 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 19 25 #include "TypedefTable.h" 26 20 27 using namespace std; 21 28 22 29 #if 0 23 30 #include <iostream> 31 24 32 #define debugPrint( x ) cerr << x 25 33 #else -
src/Parser/TypedefTable.h
r08fc48f rd180746 16 16 #pragma once 17 17 18 #include < map>19 #include < list>20 #include <st ring>21 #include <st ack>18 #include <list> // for list 19 #include <map> // for map, map<>::value_compare 20 #include <stack> // for stack 21 #include <string> // for string 22 22 23 #include "ParserTypes.h" 24 #include "parser.hh" 23 #include "parser.hh" // for IDENTIFIER, TYPEDEFname, TYPEGENname 25 24 26 25 class TypedefTable { -
src/Parser/parserutility.cc
r08fc48f rd180746 15 15 16 16 #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... 19 24 20 25 // rewrite -
src/Parser/parserutility.h
r08fc48f rd180746 16 16 #pragma once 17 17 18 #include "SynTree/SynTree.h" 18 class Expression; 19 19 20 20 Expression *notZeroExpr( Expression *orig ); -
src/SymTab/Autogen.cc
r08fc48f rd180746 15 15 #include "Autogen.h" 16 16 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 39 28 40 29 namespace SymTab { -
src/SymTab/Autogen.h
r08fc48f rd180746 17 17 18 18 #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 22 20 23 21 #include "Common/UniqueName.h" // for UniqueName 24 22 #include "InitTweak/InitTweak.h" // for InitExpander 25 #include "Parser/LinkageSpec.h" // for C26 23 #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... 32 26 #include "SynTree/Type.h" // for Type, ArrayType, Type::Qualifiers 27 28 class CompoundStmt; 29 class Statement; 33 30 34 31 namespace SymTab { -
src/SymTab/Validate.cc
r08fc48f rd180746 40 40 #include "Validate.h" 41 41 42 #include <algorithm> // for move, transform 43 #include <cassert> // for safe_dynamic_cast, assertf 42 #include <cassert> // for assertf, assert 44 43 #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 57 48 #include "Common/PassVisitor.h" // for PassVisitor, WithDeclsToAdd 58 #include "Common/ScopedMap.h" // for ScopedMap <>::const_iterator49 #include "Common/ScopedMap.h" // for ScopedMap 59 50 #include "Common/SemanticError.h" // for SemanticError 60 51 #include "Common/UniqueName.h" // for UniqueName 61 #include "Common/utility.h" // for operator+, cloneAll, deleteAll62 #include "Concurrency/Keywords.h" // for applyKeywords, implementMutexF...63 52 #include "FixFunction.h" // for FixFunction 64 53 #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 71 57 #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 67 class CompoundStmt; 68 class ReturnStmt; 69 class SwitchStmt; 80 70 81 71 #define debugPrint( x ) if ( doDebug ) { std::cout << x; }
Note: See TracChangeset
for help on using the changeset viewer.