]> granicus.if.org Git - clang/commit
Teach TextDiagnosticPrinter to print out '-Werror' in addition to the warning flag...
authorTed Kremenek <kremenek@apple.com>
Fri, 25 Feb 2011 01:28:26 +0000 (01:28 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 25 Feb 2011 01:28:26 +0000 (01:28 +0000)
commit7decebfc7b9dc841f228c93cc2e41e3e62911ff8
tree3888e867aa445da37081eecea528019eef96b900
parent9e63d4aed8ce544ab105623ad8e36d43e1e11314
Teach TextDiagnosticPrinter to print out '-Werror' in addition to the warning flag for a warning mapped to an error.

For example:

t.c:7:9: error: using the result of an assignment as a condition without parentheses [-Werror,-Wparentheses]

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126466 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Diagnostic.h
include/clang/Basic/DiagnosticIDs.h
lib/Basic/DiagnosticIDs.cpp
lib/Frontend/TextDiagnosticPrinter.cpp
test/Sema/parentheses.c