Skip to content
  1. May 05, 2010
  2. May 04, 2010
    • Chris Lattner's avatar
      add a new -fdiagnostics-show-category=none/id/name option, giving control · bf6fac84
      Chris Lattner authored
      over choice of:
      
      t.c:3:11: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
      t.c:3:11: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat,1]
      t.c:3:11: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat,Format String]
      
      dox to come.
      
      llvm-svn: 103056
      bf6fac84
    • 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
    • John McCall's avatar
      Emit the globals, metadata, etc. associated with static variables even when · 4a39ab80
      John McCall authored
      they're unreachable.  This matters because (if they're POD, or if this is C)
      the scope containing the variable might be reachable even if the variable
      isn't.  Fixes PR7044.
      
      llvm-svn: 103052
      4a39ab80
Loading