Changes in src/Common/CodeLocation.h [ddcedfe:d48e529]
- File:
-
- 1 edited
-
src/Common/CodeLocation.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/CodeLocation.h
rddcedfe rd48e529 42 42 } 43 43 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 ) { 56 45 return (first_line + seperation == other.first_line && 57 46 filename == other.filename); 58 47 } 59 48 60 bool operator==( CodeLocation const & other ) const{49 bool operator==( CodeLocation const & other ) { 61 50 return followedBy( other, 0 ); 62 51 } 63 52 64 bool operator!=( CodeLocation const & other ) const{53 bool operator!=( CodeLocation const & other ) { 65 54 return !(*this == other); 66 55 }
Note:
See TracChangeset
for help on using the changeset viewer.