Changes in / [8d70648:a935892]


Ignore:
Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    r8d70648 ra935892  
    4747namespace {
    4848
    49 // This is to preserve the SymTab::dereferenceOperator hack. It does not (and perhaps should not)
     49// This is to preserve the FindSpecialDecls hack. It does not (and perhaps should not)
    5050// allow us to use the same stratagy in the new ast.
    5151ast::FunctionDecl * dereferenceOperator = nullptr;
     52ast::StructDecl   * dtorStruct = nullptr;
     53ast::FunctionDecl * dtorStructDestroy = nullptr;
    5254
    5355}
     
    176178                        Validate::dereferenceOperator = decl;
    177179                }
     180                if ( dtorStructDestroy == node ) {
     181                        Validate::dtorStructDestroy = decl;
     182                }
    178183                return declWithTypePostamble( decl, node );
    179184        }
     
    231236                        LinkageSpec::Spec( node->linkage.val )
    232237                );
     238
     239                if ( dtorStruct == node ) {
     240                        Validate::dtorStruct = decl;
     241                }
     242
    233243                return aggregatePostamble( decl, node );
    234244        }
     
    14581468                        dereferenceOperator = decl;
    14591469                }
     1470
     1471                if ( Validate::dtorStructDestroy == old ) {
     1472                        dtorStructDestroy = decl;
     1473                }
    14601474        }
    14611475
     
    14791493
    14801494                this->node = decl;
     1495
     1496                if ( Validate::dtorStruct == old ) {
     1497                        dtorStruct = decl;
     1498                }
    14811499        }
    14821500
  • src/Validate/FindSpecialDecls.cc

    r8d70648 ra935892  
    2626namespace Validate {
    2727        Type * SizeType = nullptr;
    28   FunctionDecl * dereferenceOperator = nullptr;
    29   StructDecl * dtorStruct = nullptr;
    30   FunctionDecl * dtorStructDestroy = nullptr;
     28        FunctionDecl * dereferenceOperator = nullptr;
     29        StructDecl * dtorStruct = nullptr;
     30        FunctionDecl * dtorStructDestroy = nullptr;
    3131
    3232        namespace {
Note: See TracChangeset for help on using the changeset viewer.