Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.h

    r08fc48f r0dd18fd  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Tus Jul 25 25:30:00 2017
    13 // Update Count     : 54
     12// Last Modified On : Fri Aug 18 15:40:00 2017
     13// Update Count     : 56
    1414//
    1515
     
    108108                };
    109109
    110                 struct LineMarker {
    111                         CodeLocation const & loc;
    112                         bool toPrint;
    113 
    114                         LineMarker(CodeLocation const & loc, bool toPrint);
    115                 };
    116 
    117                 LineMarker lineDirective(BaseSyntaxNode const * node);
    118 
    119110                void asmName( DeclarationWithType *decl );
    120111
    121112                void extension( Expression *expr );
    122113                void extension( Declaration *decl );
     114
     115                void updateLocation( BaseSyntaxNode const * to );
    123116          private:
    124117                Indenter indent;
     
    129122                bool genC = false;    // true if output has to be C code
    130123                bool lineMarks = false;
     124
     125                CodeLocation currentLocation;
     126                void updateLocation( CodeLocation const & to );
     127                void nextLine();
    131128
    132129                void handleStorageClass( DeclarationWithType *decl );
     
    155152        /// returns C-compatible name of declaration
    156153        std::string genName( DeclarationWithType * decl );
    157 
    158         std::ostream & operator<<(std::ostream &,
    159                 CodeGenerator::LineMarker const &);
    160154} // namespace CodeGen
    161155
Note: See TracChangeset for help on using the changeset viewer.