Changes in / [8d70648:a935892]
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
r8d70648 ra935892 47 47 namespace { 48 48 49 // This is to preserve the SymTab::dereferenceOperatorhack. It does not (and perhaps should not)49 // This is to preserve the FindSpecialDecls hack. It does not (and perhaps should not) 50 50 // allow us to use the same stratagy in the new ast. 51 51 ast::FunctionDecl * dereferenceOperator = nullptr; 52 ast::StructDecl * dtorStruct = nullptr; 53 ast::FunctionDecl * dtorStructDestroy = nullptr; 52 54 53 55 } … … 176 178 Validate::dereferenceOperator = decl; 177 179 } 180 if ( dtorStructDestroy == node ) { 181 Validate::dtorStructDestroy = decl; 182 } 178 183 return declWithTypePostamble( decl, node ); 179 184 } … … 231 236 LinkageSpec::Spec( node->linkage.val ) 232 237 ); 238 239 if ( dtorStruct == node ) { 240 Validate::dtorStruct = decl; 241 } 242 233 243 return aggregatePostamble( decl, node ); 234 244 } … … 1458 1468 dereferenceOperator = decl; 1459 1469 } 1470 1471 if ( Validate::dtorStructDestroy == old ) { 1472 dtorStructDestroy = decl; 1473 } 1460 1474 } 1461 1475 … … 1479 1493 1480 1494 this->node = decl; 1495 1496 if ( Validate::dtorStruct == old ) { 1497 dtorStruct = decl; 1498 } 1481 1499 } 1482 1500 -
src/Validate/FindSpecialDecls.cc
r8d70648 ra935892 26 26 namespace Validate { 27 27 Type * SizeType = nullptr; 28 29 30 28 FunctionDecl * dereferenceOperator = nullptr; 29 StructDecl * dtorStruct = nullptr; 30 FunctionDecl * dtorStructDestroy = nullptr; 31 31 32 32 namespace {
Note: See TracChangeset
for help on using the changeset viewer.