diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-15 07:01:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-15 07:01:18 +0000 |
commit | e007de3b9a173be5c329662622829227313283c0 (patch) | |
tree | e61c2fe5df00c4b58f997bce5848a7d9ec214a7a /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | d5846a1eb5655f0e1ea50d06677fd1686cb01227 (diff) | |
download | bcm5719-llvm-e007de3b9a173be5c329662622829227313283c0.tar.gz bcm5719-llvm-e007de3b9a173be5c329662622829227313283c0.zip |
Rejigger how -pedantic and -pedantic-errors work and their interaction
with other diagnostic mapping. In the new scheme, -Wfoo or -Wno-foo or
-Werror=foo all override the -pedantic options, and __extension__
robustly silences all extension diagnostics in their scope.
An added bonus of this change is that MAP_DEFAULT goes away, meaning that
per-diagnostic mapping information can now be stored in 2 bits, doubling
the density of the Diagnostic::DiagMapping array. This also
substantially simplifies Diagnostic::getDiagnosticLevel.
OTOH, this temporarily introduces some "macro intensive" code in
Diagnostic.cpp. This will be addressed in a later patch.
llvm-svn: 69154
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions