diff options
author | Chris Lattner <sabre@nondot.org> | 2010-05-04 21:13:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-05-04 21:13:21 +0000 |
commit | 4531cc55291815d7c3036486d553ea8b6c744f2f (patch) | |
tree | 84bdd2c846cceb6d06b79bcd49cd0661d34ed990 /llvm/lib/CodeGen/MachineSSAUpdater.cpp | |
parent | 4a39ab80785e2c4ab63859a78ba58dfea2501216 (diff) | |
download | llvm-4531cc55291815d7c3036486d553ea8b6c744f2f.zip llvm-4531cc55291815d7c3036486d553ea8b6c744f2f.tar.gz llvm-4531cc55291815d7c3036486d553ea8b6c744f2f.tar.bz2 |
When -fdiagnostics-print-source-range-info is specified,
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
Diffstat (limited to 'llvm/lib/CodeGen/MachineSSAUpdater.cpp')
0 files changed, 0 insertions, 0 deletions