aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2015-06-13 07:11:40 +0000
committerEric Fiselier <eric@efcs.ca>2015-06-13 07:11:40 +0000
commit098e6de9aa41dec16c09dfab456b83bf8a2946cb (patch)
tree4773b375e153fed6721b70d60bcb11cc895f6736 /llvm/unittests/Support/CommandLineTest.cpp
parentee187e247bc2c7b97eb345e1de7f5ccf151e24e5 (diff)
downloadllvm-098e6de9aa41dec16c09dfab456b83bf8a2946cb.zip
llvm-098e6de9aa41dec16c09dfab456b83bf8a2946cb.tar.gz
llvm-098e6de9aa41dec16c09dfab456b83bf8a2946cb.tar.bz2
Add `-verify-ignore-unexpected` option to ignore unexpected diagnostics in VerifyDiagnosticsConsumer
Summary: The goal of this patch is to make `-verify` easier to use when testing libc++. The `notes` attached to compile error diagnostics are numerous and relatively unstable when they reference libc++ header internals. This patch allows libc++ to write stable compilation failure tests by allowing unexpected diagnostic messages to be ignored where they are not relevant. This patch adds a new CC1 flag called `-verify-ignore-unexpected`. `-verify-ignore-unexpected` tells `VerifyDiagnosticsConsumer` to ignore *all* unexpected diagnostic messages. `-verify-ignore-unexpected=<LevelList>` can be used to only ignore certain diagnostic levels. `<LevelList>` is a comma separated list of diagnostic levels to ignore. The supported levels are `note`, `remark`, `warning` and `error`. Reviewers: bogner, grosser, EricWF Reviewed By: EricWF Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D10138 llvm-svn: 239665
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions