Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/CodeLocation.h

    rddcedfe rd48e529  
    4242        }
    4343
    44         bool startsBefore( CodeLocation const & other ) const {
    45                 if( filename < other.filename ) return true;
    46                 if( filename > other.filename ) return false;
    47 
    48                 if( first_line < other.first_line ) return true;
    49                 if( first_line > other.first_line ) return false;
    50 
    51                 if( last_line < other.last_line ) return true;
    52                 return false;
    53         }
    54 
    55         bool followedBy( CodeLocation const & other, int seperation ) const {
     44        bool followedBy( CodeLocation const & other, int seperation ) {
    5645                return (first_line + seperation == other.first_line &&
    5746                        filename == other.filename);
    5847        }
    5948
    60         bool operator==( CodeLocation const & other ) const {
     49        bool operator==( CodeLocation const & other ) {
    6150                return followedBy( other, 0 );
    6251        }
    6352
    64         bool operator!=( CodeLocation const & other ) const {
     53        bool operator!=( CodeLocation const & other ) {
    6554                return !(*this == other);
    6655        }
Note: See TracChangeset for help on using the changeset viewer.