Changeset 43e0949 for src/SymTab
- Timestamp:
- Feb 19, 2019, 1:19:47 PM (7 years ago)
- Branches:
- no_list
- Children:
- 2f42718
- Parents:
- 99614c2
- Location:
- src/SymTab
- Files:
-
- 2 edited
-
Indexer.cc (modified) (4 diffs)
-
Indexer.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Indexer.cc
r99614c2 r43e0949 102 102 } 103 103 104 void Indexer::removeSpecialOverrides( const std::string &id, std:: list< IdData > & out ) const {104 void Indexer::removeSpecialOverrides( const std::string &id, std::vector< IdData > & out ) const { 105 105 // only need to perform this step for constructors, destructors, and assignment functions 106 106 if ( ! CodeGen::isCtorDtorAssign( id ) ) return; … … 116 116 bool existsUserDefinedCopyFunc = false; // user-defined copy ctor found 117 117 BaseSyntaxNode * deleteStmt = nullptr; // non-null if a user-defined function is found 118 std:: list< DeclBall > decls;118 std::vector< DeclBall > decls; 119 119 120 120 // another FunctionDecl for the current type was found - determine … … 135 135 }; // ValueType 136 136 137 std:: list< IdData > copy;138 copy.splice( copy.end(), out );137 std::vector< IdData > copy; 138 swap( copy, out ); 139 139 140 140 // organize discovered declarations by type … … 231 231 } 232 232 233 void Indexer::lookupId( const std::string &id, std:: list< IdData > &out ) const {233 void Indexer::lookupId( const std::string &id, std::vector< IdData > &out ) const { 234 234 std::unordered_set< std::string > foundMangleNames; 235 235 -
src/SymTab/Indexer.h
r99614c2 r43e0949 60 60 61 61 /// Gets all declarations with the given ID 62 void lookupId( const std::string &id, std:: list< IdData > &out ) const;62 void lookupId( const std::string &id, std::vector< IdData > &out ) const; 63 63 /// Gets the top-most type declaration with the given ID 64 64 NamedTypeDecl *lookupType( const std::string &id ) const; … … 140 140 // so that they will not be selected 141 141 // void removeSpecialOverrides( FunctionDecl *decl ); 142 void removeSpecialOverrides( const std::string &id, std:: list< IdData > & out ) const;142 void removeSpecialOverrides( const std::string &id, std::vector< IdData > & out ) const; 143 143 144 144 /// Ensures that tables variable is writable (i.e. allocated, uniquely owned by this Indexer, and at the current scope)
Note:
See TracChangeset
for help on using the changeset viewer.