diff options
author | Peter Klausler <35819229+klausler@users.noreply.github.com> | 2023-11-13 16:13:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 16:13:50 -0800 |
commit | 1c91d9bdea3b6c38e8fbce46ec8181a9c0aa26f8 (patch) | |
tree | cf9c2d958a333e7dbbe60c600a5ad025ce41b049 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | a5eb6bdd8e126ad94de0a12002cac2c3f01e05f5 (diff) | |
download | llvm-1c91d9bdea3b6c38e8fbce46ec8181a9c0aa26f8.zip llvm-1c91d9bdea3b6c38e8fbce46ec8181a9c0aa26f8.tar.gz llvm-1c91d9bdea3b6c38e8fbce46ec8181a9c0aa26f8.tar.bz2 |
[flang] Ensure that portability warnings are conditional (#71857)
Before emitting a warning message, code should check that the usage in
question should be diagnosed by calling ShouldWarn(). A fair number of
sites in the code do not, and can emit portability warnings
unconditionally, which can confuse a user that hasn't asked for them
(-pedantic) and isn't terribly concerned about portability *to* other
compilers.
Add calls to ShouldWarn() or IsEnabled() around messages that need them,
and add -pedantic to tests that now require it to test their portability
messages, and add more expected message lines to those tests when
-pedantic causes other diagnostics to fire.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions