Skip to content
  1. Jul 15, 2010
  2. Jul 10, 2010
  3. Jul 09, 2010
  4. Jul 07, 2010
  5. Jun 25, 2010
  6. Jun 24, 2010
  7. Jun 19, 2010
    • Chris Lattner's avatar
      introduce a new CharSourceRange class, and enhance the diagnostics routines · ed8b6b79
      Chris Lattner authored
      to use them instead of SourceRange.  CharSourceRange is just a SourceRange
      plus a bool that indicates whether the range has the end character resolved
      or whether the end location is the start of the end token.  While most of
      the compiler wants to think of ranges that have ends that are the start of
      the end token, the printf diagnostic stuff wants to highlight ranges within
      tokens.
      
      This is transparent to the diagnostic stuff.  To start taking advantage of
      the new capabilities, you can do something like this:
        Diag(..) << CharSourceRange::getCharRange(Begin,End)
      
      llvm-svn: 106338
      ed8b6b79
  8. Jun 17, 2010
  9. Jun 11, 2010
  10. Jun 10, 2010
  11. Jun 09, 2010
  12. Jun 08, 2010
  13. Jun 05, 2010
  14. May 30, 2010
  15. May 28, 2010
  16. May 27, 2010
  17. May 21, 2010
  18. May 13, 2010
  19. May 07, 2010
  20. May 06, 2010
  21. May 04, 2010
    • Chris Lattner's avatar
      When -fdiagnostics-print-source-range-info is specified, · 4531cc55
      Chris Lattner authored
      print the diagnostic category number in the [] at the end
      of the line.  For example:
      
      $ cat t.c 
      #include <stdio.h>
      void foo() {
       printf("%s", 4);
      }
      $  clang t.c -fsyntax-only -fdiagnostics-print-source-range-info
      t.c:3:11:{3:10-3:12}{3:15-3:16}: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat,1]
        printf("%s", 4);
                ~^   ~
      1 warning generated.
      
      Clients that want category information can now pick the number 
      out of the output, rdar://7928231.
      
      More coming.
      
      llvm-svn: 103053
      4531cc55
    • Chris Lattner's avatar
      add the ability to associate 'category' names with diagnostics · 216c33be
      Chris Lattner authored
      and diagnostic groups.  This allows the compiler to group 
      diagnostics together (e.g. "Logic Warning", 
      "Format String Warning", etc) like the static analyzer does.
      This is not exposed through anything in the compiler yet.
      
      llvm-svn: 103051
      216c33be
  22. Apr 23, 2010
  23. Apr 22, 2010
  24. Apr 21, 2010
  25. Apr 20, 2010
Loading