This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add nonfatal message classes
ClosedPublic

Authored by klausler on Mar 8 2022, 9:38 AM.

Details

Summary

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.

Diff Detail

Event Timeline

klausler created this revision.Mar 8 2022, 9:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 8 2022, 9:38 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Mar 8 2022, 9:38 AM
PeteSteinfeld accepted this revision.Mar 8 2022, 10:47 AM

All builds and tests correctly and looks good.

flang/docs/Parsing.md
140–149

Good explanation.

This revision is now accepted and ready to land.Mar 8 2022, 10:47 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 8 2022, 11:40 AM