Changes in / [a6e0e4c:4422579]


Ignore:
Location:
src/AST
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    ra6e0e4c r4422579  
    5555
    5656// these need to be accessed in new FixInit now
    57 ast::ptr<ast::Type> sizeType = nullptr;
    58 const ast::FunctionDecl * dereferenceOperator = nullptr;
    59 const ast::StructDecl   * dtorStruct = nullptr;
    60 const ast::FunctionDecl * dtorStructDestroy = nullptr;
     57ast::Type * sizeType = nullptr;
     58ast::FunctionDecl * dereferenceOperator = nullptr;
     59ast::StructDecl   * dtorStruct = nullptr;
     60ast::FunctionDecl * dtorStructDestroy = nullptr;
    6161
    6262}
     
    28042804        ConverterOldToNew c;
    28052805        ast::TranslationUnit unit;
    2806         if (Validate::SizeType) {
    2807                 // this should be a BasicType.
    2808                 auto old = strict_dynamic_cast<BasicType *>(Validate::SizeType);
    2809                 ast::sizeType = new ast::BasicType{ (ast::BasicType::Kind)(unsigned)old->kind };
    2810         }
    2811 
    28122806        for(auto d : translationUnit) {
    28132807                d->accept( c );
  • src/AST/Expr.hpp

    ra6e0e4c r4422579  
    112112
    113113                bool hasSlots() const { return data.resnSlots; }
    114                 bool hasParams() const { return data.inferParams; }
    115114
    116115                ResnSlots& resnSlots() {
  • src/AST/Fwd.hpp

    ra6e0e4c r4422579  
    139139struct TranslationUnit;
    140140// TODO: Get from the TranslationUnit:
    141 extern ptr<Type> sizeType;
    142 extern const FunctionDecl * dereferenceOperator;
    143 extern const StructDecl   * dtorStruct;
    144 extern const FunctionDecl * dtorStructDestroy;
     141extern Type * sizeType;
     142extern FunctionDecl * dereferenceOperator;
     143extern StructDecl   * dtorStruct;
     144extern FunctionDecl * dtorStructDestroy;
    145145
    146146}
  • src/AST/TranslationUnit.hpp

    ra6e0e4c r4422579  
    2929                std::map< UniqueId, Decl * > idMap;
    3030
    31                 const Type * sizeType;
    32                 const FunctionDecl * dereference;
    33                 const StructDecl * dtorStruct;
    34                 const FunctionDecl * dtorDestroy;
     31                Type * sizeType;
     32                FunctionDecl * dereference;
     33                StructDecl * dtorStruct;
     34                FunctionDecl * dtorDestroy;
    3535        } global;
    3636};
Note: See TracChangeset for help on using the changeset viewer.