[all-commits] [llvm/llvm-project] 289577: [flang] Add nonfatal message classes

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Mar 8 11:41:01 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2895771faf4f8e63fabeb6f35fd5b70b925b0234
      https://github.com/llvm/llvm-project/commit/2895771faf4f8e63fabeb6f35fd5b70b925b0234
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-03-08 (Tue, 08 Mar 2022)

  Changed paths:
    M flang/docs/Parsing.md
    M flang/include/flang/Parser/message.h
    M flang/lib/Parser/message.cpp
    M flang/lib/Semantics/check-io.cpp
    M flang/lib/Semantics/mod-file.cpp
    M flang/lib/Semantics/resolve-names-utils.cpp
    M flang/lib/Semantics/resolve-names-utils.h
    M flang/lib/Semantics/resolve-names.cpp

  Log Message:
  -----------
  [flang] Add nonfatal message classes

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.

Differential Revision: https://reviews.llvm.org/D121228




More information about the All-commits mailing list