]> granicus.if.org Git - clang/commit
Basic/Diagnostics: Rewrite DiagnosticIDs::getDiagnosticLevel completely to be straigh...
authorDaniel Dunbar <daniel@zuster.org>
Thu, 29 Sep 2011 01:58:05 +0000 (01:58 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 29 Sep 2011 01:58:05 +0000 (01:58 +0000)
commitbe1aa410274b28fc143c47c814f07c989f4534d6
treed4072fb4fe99287726865253e3f65492fd8d2ed1
parenta5e41333b06fdf036d58495490eb14d6a0a3fcf7
Basic/Diagnostics: Rewrite DiagnosticIDs::getDiagnosticLevel completely to be straighter line code, use the new DiagnosticMappingInfo flags, and eliminate the odd MAP_WARNING_NO_WERROR and friend mappings.
 - This fixes a host of obscure bugs with regards to how warning mapping options composed with one another, and I believe makes the code substantially easier to read and reason about.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140770 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticIDs.h
lib/Basic/Diagnostic.cpp
lib/Basic/DiagnosticIDs.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.aggr/p4.cpp
test/Frontend/Weverything.c
test/Frontend/warning-mapping-2.c
test/Frontend/warning-mapping-4.c [new file with mode: 0644]