Changeset 8135d4c for src/SymTab
- Timestamp:
- Aug 22, 2017, 7:31:52 PM (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:
- 9aaac6e9
- Parents:
- fc56cdbf (diff), b3d413b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/SymTab
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Autogen.cc
rfc56cdbf r8135d4c 16 16 #include "Autogen.h" 17 17 18 #include <cstddef> // for NULL 18 19 #include <algorithm> // for count_if 19 20 #include <cassert> // for safe_dynamic_cast, assert, assertf … … 21 22 #include <list> // for list, _List_iterator, list<>::iter... 22 23 #include <set> // for set, _Rb_tree_const_iterator 24 #include <utility> // for pair 23 25 #include <vector> // for vector 24 26 -
src/SymTab/Autogen.h
rfc56cdbf r8135d4c 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/FixFunction.cc
rfc56cdbf r8135d4c 20 20 #include "Common/utility.h" // for maybeClone 21 21 #include "SynTree/Declaration.h" // for FunctionDecl, ObjectDecl, Declarati... 22 #include "SynTree/Expression.h" // for Expression 22 23 #include "SynTree/Type.h" // for ArrayType, PointerType, Type, Basic... 23 24 -
src/SymTab/Indexer.cc
rfc56cdbf r8135d4c 10 10 // Created On : Sun May 17 21:37:33 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 30 16:38:47201713 // Update Count : 1912 // Last Modified On : Thu Aug 17 16:08:40 2017 13 // Update Count : 20 14 14 // 15 15 … … 355 355 } 356 356 357 void Indexer::visit( IfStmt *ifStmt ) { 358 // for statements introduce a level of scope 359 enterScope(); 360 Visitor::visit( ifStmt ); 361 leaveScope(); 362 } 363 364 void Indexer::visit( ForStmt *forStmt ) { 365 // for statements introduce a level of scope 366 enterScope(); 367 Visitor::visit( forStmt ); 368 leaveScope(); 369 } 370 371 void Indexer::visit( CatchStmt *catchStmt ) { 372 // catch statements introduce a level of scope (for the caught exception) 373 enterScope(); 374 Visitor::visit( catchStmt ); 375 leaveScope(); 376 } 357 377 358 378 void Indexer::visit( ApplicationExpr *applicationExpr ) { … … 558 578 leaveScope(); 559 579 } 560 561 void Indexer::visit( ForStmt *forStmt ) {562 // for statements introduce a level of scope563 enterScope();564 Visitor::visit( forStmt );565 leaveScope();566 }567 568 569 580 570 581 void Indexer::lookupId( const std::string &id, std::list< DeclarationWithType* > &out ) const { -
src/SymTab/Indexer.h
rfc56cdbf r8135d4c 10 10 // Created On : Sun May 17 21:38:55 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jul 22 09:46:34201713 // Update Count : 712 // Last Modified On : Thu Aug 17 16:09:12 2017 13 // Update Count : 8 14 14 // 15 15 … … 45 45 46 46 virtual void visit( CompoundStmt *compoundStmt ); 47 virtual void visit( IfStmt *ifStmt ); 48 virtual void visit( ForStmt *forStmt ); 49 virtual void visit( CatchStmt *catchStmt ); 47 50 48 51 virtual void visit( ApplicationExpr *applicationExpr ); … … 81 84 virtual void visit( StructInstType *contextInst ); 82 85 virtual void visit( UnionInstType *contextInst ); 83 84 virtual void visit( ForStmt *forStmt );85 86 86 87 // when using an indexer manually (e.g., within a mutator traversal), it is necessary to tell the indexer -
src/SymTab/Mangler.cc
rfc56cdbf r8135d4c 20 20 #include <iterator> // for ostream_iterator, back_insert_ite... 21 21 #include <list> // for _List_iterator, list, _List_const... 22 #include <string> // for string, operator<<, basic_string22 #include <string> // for string, char_traits, operator<< 23 23 24 24 #include "CodeGen/OperatorTable.h" // for OperatorInfo, operatorLookup 25 #include "Common/SemanticError.h" // for SemanticError 25 26 #include "Common/utility.h" // for toString 26 27 #include "Parser/LinkageSpec.h" // for Spec, isOverridable, AutoGen, Int... -
src/SymTab/Validate.cc
rfc56cdbf r8135d4c 40 40 #include "Validate.h" 41 41 42 #include <cassert> // for assertf, assert 42 43 #include <cstddef> // for size_t 43 #include <algorithm> // for move, transform 44 #include <cassert> // for safe_dynamic_cast, assertf 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 <utility> // for pair, make_pair 52 53 #include "AddVisit.h" // for addVisit 54 #include "Autogen.h" // for SizeType, autogenerateRoutines 44 #include <list> // for list 45 #include <string> // for string 46 #include <utility> // for pair 47 55 48 #include "CodeGen/CodeGenerator.h" // for genName 56 49 #include "CodeGen/OperatorTable.h" // for isCtorDtor, isCtorDtorAssign 57 50 #include "Common/PassVisitor.h" // for PassVisitor, WithDeclsToAdd 58 #include "Common/ScopedMap.h" // for ScopedMap <>::const_iterator51 #include "Common/ScopedMap.h" // for ScopedMap 59 52 #include "Common/SemanticError.h" // for SemanticError 60 53 #include "Common/UniqueName.h" // for UniqueName 61 54 #include "Common/utility.h" // for operator+, cloneAll, deleteAll 62 #include "Concurrency/Keywords.h" // for applyKeywords , implementMutexF...55 #include "Concurrency/Keywords.h" // for applyKeywords 63 56 #include "FixFunction.h" // for FixFunction 64 57 #include "Indexer.h" // for Indexer 65 #include "InitTweak/InitTweak.h" // for isCtorDtor, isCtorDtorAssign 66 #include "Parser/LinkageSpec.h" // for C, Cforall 67 #include "ResolvExpr/typeops.h" // for extractResultType, typesCompat... 68 #include "SynTree/Attribute.h" // for Attribute 58 #include "InitTweak/InitTweak.h" // for isCtorDtorAssign 59 #include "Parser/LinkageSpec.h" // for C 60 #include "ResolvExpr/typeops.h" // for typesCompatible 61 #include "SymTab/AddVisit.h" // for addVisit 62 #include "SymTab/Autogen.h" // for SizeType 63 #include "SynTree/Attribute.h" // for noAttributes, Attribute 69 64 #include "SynTree/Constant.h" // for Constant 70 #include "SynTree/Declaration.h" // for EnumDecl, StructDecl, UnionDecl 71 #include "SynTree/Expression.h" // for TypeExpr, CompoundLiteralExpr 72 #include "SynTree/Initializer.h" // for ListInit, Initializer, noDesig... 73 #include "SynTree/Mutator.h" // for mutateAll, Mutator 74 #include "SynTree/Statement.h" // for CompoundStmt, DeclStmt, Return... 75 #include "SynTree/Type.h" // for Type, TypeInstType, TraitInstType 76 #include "SynTree/TypeSubstitution.h" // for TypeSubstitution, applySubstit... 77 #include "SynTree/Visitor.h" // for acceptAll, Visitor 65 #include "SynTree/Declaration.h" // for ObjectDecl, DeclarationWithType 66 #include "SynTree/Expression.h" // for CompoundLiteralExpr, Expressio... 67 #include "SynTree/Initializer.h" // for ListInit, Initializer 68 #include "SynTree/Label.h" // for operator==, Label 69 #include "SynTree/Mutator.h" // for Mutator 70 #include "SynTree/Type.h" // for Type, TypeInstType, EnumInstType 71 #include "SynTree/TypeSubstitution.h" // for TypeSubstitution 72 #include "SynTree/Visitor.h" // for Visitor 73 74 class CompoundStmt; 75 class ReturnStmt; 76 class SwitchStmt; 77 78 78 79 79 #define debugPrint( x ) if ( doDebug ) { std::cout << x; }
Note: See TracChangeset
for help on using the changeset viewer.