Ignore:
Timestamp:
Nov 15, 2021, 3:40:19 PM (9 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
enum, forall-pointer-decay, master
Children:
3df86cc, 5f5a729
Parents:
ce36b55
Message:

We can now thread the global/special declarations from convert to convert using the TranslationUnit?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    rce36b55 r1387ea0  
    14441444
    14451445std::list< Declaration * > convert( const ast::TranslationUnit && translationUnit ) {
     1446        // Copy values from the global store to the local static variables.
     1447        ast::sizeType = translationUnit.global.sizeType;
     1448        ast::dereferenceOperator = translationUnit.global.dereference;
     1449        ast::dtorStruct = translationUnit.global.dtorStruct;
     1450        ast::dtorStructDestroy = translationUnit.global.dtorDestroy;
     1451
    14461452        ConverterNewToOld c;
    14471453        std::list< Declaration * > decls;
Note: See TracChangeset for help on using the changeset viewer.