[flang-commits] [PATCH] D121228: [flang] Add nonfatal message classes
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Tue Mar 8 09:38:16 PST 2022
klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.
F18 <https://reviews.llvm.org/F18> presently has fatal and non-fatal diagnostic messages. We'd like
to make non-fatal warnings stand out better in the output of the compiler.
This will turn out to be a large change that affects many files.
This patch is just the first part. It converts a Boolean isFatal_ data
member of the message classes into a severity code, and defines four
of these codes (Error, Warning, Portability, and a catch-all Other).
Later patches will result from sweeping over the parser and semantics,
changing most non-fatal diagnostic messages into warnings and portability
notes.
https://reviews.llvm.org/D121228
Files:
flang/docs/Parsing.md
flang/include/flang/Parser/message.h
flang/lib/Parser/message.cpp
flang/lib/Semantics/check-io.cpp
flang/lib/Semantics/mod-file.cpp
flang/lib/Semantics/resolve-names-utils.cpp
flang/lib/Semantics/resolve-names-utils.h
flang/lib/Semantics/resolve-names.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121228.413838.patch
Type: text/x-patch
Size: 10048 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220308/d210977a/attachment.bin>
More information about the flang-commits
mailing list