]> granicus.if.org Git - clang/commit
Instead of counting totally diagnostics, split the count into a count
authorChris Lattner <sabre@nondot.org>
Wed, 7 Apr 2010 18:47:42 +0000 (18:47 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 7 Apr 2010 18:47:42 +0000 (18:47 +0000)
commit53eee7ba970d21ff15bbd4334164037a3b4cc4b8
tree0cf5e2b1b124846530d4d23f3fd9e3acf9f38b15
parent5863b41004144470b935d18e6d52ebf11aca8597
Instead of counting totally diagnostics, split the count into a count
of errors and warnings.  This allows us to emit something like this:

2 warnings and 1 error generated.

instead of:

3 diagnostics generated.

This also stops counting 'notes' because they are just follow-on information
about the previous diag, not a diagnostic in themselves.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100675 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/clang/Basic/Diagnostic.h
lib/Basic/Diagnostic.cpp
lib/Frontend/CompilerInstance.cpp
test/ASTMerge/category.m
test/ASTMerge/enum.c
test/ASTMerge/function.c
test/ASTMerge/interface.m
test/ASTMerge/property.m
test/ASTMerge/struct.c
test/ASTMerge/typedef.c
test/ASTMerge/var.c
test/Analysis/nil-receiver-undefined-larger-than-voidptr-ret.m
test/Rewriter/dllimport-typedef.c
test/Rewriter/missing-dllimport.c