Changes in src/AST/Node.cpp [400b8be:3b0bc16]
- File:
-
- 1 edited
-
src/AST/Node.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Node.cpp
r400b8be r3b0bc16 9 9 // Author : Thierry Delisle 10 10 // Created On : Thu May 16 14:16:00 2019 11 // Last Modified By : Andrew Beach12 // Last Modified On : Fri Mar 25 10:30:00202213 // Update Count : 411 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Feb 1 09:09:39 2022 13 // Update Count : 3 14 14 // 15 15 … … 19 19 #include <csignal> // MEMORY DEBUG -- for raise 20 20 #include <iostream> 21 #include <utility>22 21 23 22 #include "Attribute.hpp" … … 77 76 void ast::ptr_base<node_t, ref_t>::_check() const { 78 77 // if(node) assert(node->was_ever_strong == false || node->strong_count > 0); 79 }80 81 template< typename node_t, enum ast::Node::ref_type ref_t >82 void ast::ptr_base<node_t, ref_t>::swap( ptr_base & other ) noexcept {83 std::swap( this->node, other.node );84 _trap( this->node );85 _trap( other.node );86 78 } 87 79 … … 160 152 template class ast::ptr_base< ast::SwitchStmt, ast::Node::ref_type::weak >; 161 153 template class ast::ptr_base< ast::SwitchStmt, ast::Node::ref_type::strong >; 162 template class ast::ptr_base< ast::Case Clause, ast::Node::ref_type::weak >;163 template class ast::ptr_base< ast::Case Clause, ast::Node::ref_type::strong >;154 template class ast::ptr_base< ast::CaseStmt, ast::Node::ref_type::weak >; 155 template class ast::ptr_base< ast::CaseStmt, ast::Node::ref_type::strong >; 164 156 template class ast::ptr_base< ast::BranchStmt, ast::Node::ref_type::weak >; 165 157 template class ast::ptr_base< ast::BranchStmt, ast::Node::ref_type::strong >; … … 170 162 template class ast::ptr_base< ast::TryStmt, ast::Node::ref_type::weak >; 171 163 template class ast::ptr_base< ast::TryStmt, ast::Node::ref_type::strong >; 172 template class ast::ptr_base< ast::Catch Clause, ast::Node::ref_type::weak >;173 template class ast::ptr_base< ast::Catch Clause, ast::Node::ref_type::strong >;174 template class ast::ptr_base< ast::Finally Clause, ast::Node::ref_type::weak >;175 template class ast::ptr_base< ast::Finally Clause, ast::Node::ref_type::strong >;164 template class ast::ptr_base< ast::CatchStmt, ast::Node::ref_type::weak >; 165 template class ast::ptr_base< ast::CatchStmt, ast::Node::ref_type::strong >; 166 template class ast::ptr_base< ast::FinallyStmt, ast::Node::ref_type::weak >; 167 template class ast::ptr_base< ast::FinallyStmt, ast::Node::ref_type::strong >; 176 168 template class ast::ptr_base< ast::WaitForStmt, ast::Node::ref_type::weak >; 177 169 template class ast::ptr_base< ast::WaitForStmt, ast::Node::ref_type::strong >;
Note:
See TracChangeset
for help on using the changeset viewer.