Skip to content
  1. Apr 15, 2011
  2. Mar 26, 2011
  3. Mar 21, 2011
  4. Jan 31, 2011
  5. Jan 14, 2011
  6. Dec 15, 2010
    • Argyrios Kyrtzidis's avatar
      Fix diagnostic pragmas. · 1cb0de1d
      Argyrios Kyrtzidis authored
      Diagnostic pragmas are broken because we don't keep track of the diagnostic state changes and we only check the current/latest state.
      Problems manifest if a diagnostic is emitted for a source line that has different diagnostic state than the current state; this can affect
      a lot of places, like C++ inline methods, template instantiations, the lexer, etc.
      
      Fix the issue by having the Diagnostic object keep track of the source location of the pragmas so that it is able to know what is the diagnostic state at any given source location.
      
      Fixes rdar://8365684.
      
      llvm-svn: 121873
      1cb0de1d
  7. Nov 19, 2010
  8. Nov 18, 2010
    • Argyrios Kyrtzidis's avatar
      Since multiple diagnostics can share one diagnostic client, have the client keeping track · c79346a5
      Argyrios Kyrtzidis authored
      of the total number of warnings/errors reported.
      
      llvm-svn: 119731
      c79346a5
    • Argyrios Kyrtzidis's avatar
      Refactoring of Diagnostic class. · d0040648
      Argyrios Kyrtzidis authored
      -Move the stuff of Diagnostic related to creating/querying diagnostic IDs into a new DiagnosticIDs class.
      -DiagnosticIDs can be shared among multiple Diagnostics for multiple translation units.
      -The rest of the state in Diagnostic object is considered related and tied to one translation unit.
      -Have Diagnostic point to the SourceManager that is related with. Diagnostic can now accept just a
         SourceLocation instead of a FullSourceLoc.
      -Reflect the changes to various interfaces.
      
      llvm-svn: 119730
      d0040648
  9. Oct 14, 2010
  10. Oct 13, 2010
  11. Oct 12, 2010
  12. Aug 18, 2010
  13. Aug 15, 2010
  14. Aug 02, 2010
  15. Jul 31, 2010
  16. Jul 26, 2010
  17. Jul 25, 2010
  18. Jul 19, 2010
  19. 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
  20. Jun 11, 2010
  21. May 13, 2010
  22. 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
  23. Apr 20, 2010
    • Douglas Gregor's avatar
      Introduce a limit on the depth of the template instantiation backtrace · ffed1cb3
      Douglas Gregor authored
      we will print with each error that occurs during template
      instantiation. When the backtrace is longer than that, we will print
      N/2 of the innermost backtrace entries and N/2 of the outermost
      backtrace entries, then skip the middle entries with a note such as:
      
        note: suppressed 2 template instantiation contexts; use
        -ftemplate-backtrace-limit=N to change the number of template
        instantiation entries shown
      
      This should eliminate some excessively long backtraces that aren't
      providing any value.
      
      llvm-svn: 101882
      ffed1cb3
  24. Apr 15, 2010
  25. Apr 12, 2010
  26. Apr 07, 2010
  27. Mar 31, 2010
  28. Mar 30, 2010
  29. Mar 25, 2010
  30. Mar 22, 2010
Loading