if_diff/src/idfMatchAst.cxx
//============================================================================
// Get the end line and column from the location structure.
// If start_line is 0, then this returns a 1-based "column" number.
//============================================================================
Get the end line and column from the location structure.
If start_line is 0, then this returns a 1-based "column" number.
Get the end line and column from the location structure . If start_line is 0 then this returns a 1 - based " column " number .
static boolean normalize_end(const locationStruct &loc, int &end_line, int &end_column)
{
  if (loc.end_line == 0) {
    if (loc.end_column <= 0) {
      return false;
    }
    end_line = loc.start_line;
    end_column = loc.start_column + loc.end_column - 1;
  }
  else {
    end_line = loc.end_line;
    end_column = loc.end_column;
  }
  return true;
}
static boolean normalize_end ( const locationStruct & loc , int & end_line , int & end_column ) { if ( loc . end_line == 0 ) { if ( loc . end_column <= 0 ) { return false ; } end_line = loc . start_line ; end_column = loc . start_column + loc . end_column - 1 ; } else { end_line = loc . end_line ; end_column = loc . end_column ; } return true ; }
Get the end line and column from the location structure.
Get the end line and column from the location structure .
// have a byte length