Skip to content
  1. Jan 12, 2008
    • Chris Lattner's avatar
      When forming the squigly underline for a diagnostic, make sure to · 177977ac
      Chris Lattner authored
      verify that the source range corresponds to the current file, not
      just the current line.  This allows us to emit:
      
      a.c:1:44: error: invalid operands to binary expression ('double' and 'int *')
      double a; int *b; void f(void) { int c = a +
                                               ~ ^
      
      instead of:
      
      a.c:1:44: error: invalid operands to binary expression ('double' and 'int *')
      double a; int *b; void f(void) { int c = a +
      ~                                        ~ ^
      
      for PR1906 (note the leading ~).
      
      Thanks to Neil for noticing this.
      
      llvm-svn: 45901
      177977ac
  2. Jan 11, 2008
  3. Jan 10, 2008
  4. Jan 09, 2008
  5. Jan 08, 2008
Loading