llvm-project/flang/lib/Semantics
Peter Klausler 2895771faf [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
2022-03-08 11:40:45 -08:00
..
CMakeLists.txt [flang] Save binding labels as strings 2021-03-24 11:25:23 -07:00
assignment.cpp [flang][nfc] Fix comments, remove needless API, tweak script 2021-01-22 10:55:53 -08:00
assignment.h
attr.cpp
canonicalize-acc.cpp [flang] Add clang-tidy check for braces around if 2021-06-16 09:13:53 +00:00
canonicalize-acc.h [flang][openacc] Semantic checks for OpenACC 3.0 clauses validity 2020-07-14 20:44:35 -04:00
canonicalize-do.cpp [flang][NFC] Get formatting in sync with latest clang-format 2020-07-01 16:51:46 -07:00
canonicalize-do.h
canonicalize-omp.cpp
canonicalize-omp.h
check-acc-structure.cpp [flang] Add clang-tidy check for braces around if 2021-06-16 09:13:53 +00:00
check-acc-structure.h [flang][directive] Enforce basic semantic check for all clauses 2021-02-01 13:33:30 -05:00
check-allocate.cpp [flang] Rearrange prototype & code placement of IsCoarray() 2021-11-30 15:26:34 -08:00
check-allocate.h
check-arithmeticif.cpp
check-arithmeticif.h
check-call.cpp [flang] Remove bogus messages for actual/dummy procedure argument compatibility 2022-03-02 16:00:36 -08:00
check-call.h [flang] Fix generic resolution case 2021-10-22 13:38:47 -07:00
check-case.cpp [flang] Fix integer CASE constant typing 2020-09-01 10:59:35 -07:00
check-case.h
check-coarray.cpp [flang] Support for image selectors 2020-07-08 07:31:54 -07:00
check-coarray.h [flang] Support for image selectors 2020-07-08 07:31:54 -07:00
check-data.cpp [flang] Allow DATA initialization of derived types w/ allocatable components 2022-02-14 10:43:49 -08:00
check-data.h [flang] Implement semantics for DEC STRUCTURE/RECORD 2022-01-13 13:17:13 -08:00
check-deallocate.cpp [flang] Save AllocateObject and PointerObject analyzed expression 2021-03-16 10:27:45 +01:00
check-deallocate.h
check-declarations.cpp [flang] Accommodate module subprograms defined in the same module 2022-03-02 13:07:16 -08:00
check-declarations.h [flang] Improve initializer semantics, esp. for component default values 2020-12-07 14:40:41 -08:00
check-directive-structure.h The device expression must evaluate to a non-negative integer value. 2022-02-13 16:51:19 +05:30
check-do-forall.cpp [flang] Rearrange prototype & code placement of IsCoarray() 2021-11-30 15:26:34 -08:00
check-do-forall.h
check-if-stmt.cpp
check-if-stmt.h
check-io.cpp [flang] Add nonfatal message classes 2022-03-08 11:40:45 -08:00
check-io.h [flang] Catch I/O of bad derived type at compile time 2022-02-28 15:40:12 -08:00
check-namelist.cpp
check-namelist.h
check-nullify.cpp [flang] Save AllocateObject and PointerObject analyzed expression 2021-03-16 10:27:45 +01:00
check-nullify.h
check-omp-structure.cpp The device expression must evaluate to a non-negative integer value. 2022-02-13 16:51:19 +05:30
check-omp-structure.h Added OpenMP 5.0 specification based semantic checks for atomic update construct 2022-01-24 13:24:00 +05:30
check-purity.cpp
check-purity.h
check-return.cpp [flang][NFC] Add GetTopLevelUnitContaining functions 2020-12-02 10:28:49 -08:00
check-return.h
check-select-rank.cpp [flang] Validate SIZE(x,DIM=n) dimension for assumed-size array x 2021-09-17 10:14:18 -07:00
check-select-rank.h
check-select-type.cpp [FLANG] Fix issues in SELECT TYPE construct when intrinsic type specification is specified in TYPE GUARD statement. 2020-08-03 09:24:42 +05:30
check-select-type.h
check-stop.cpp
check-stop.h
compute-offsets.cpp [flang] Generate PDT runtime type info in the type definition scope 2022-03-03 10:15:21 +01:00
compute-offsets.h [flang] Implement STORAGE_SIZE(), SIZEOF(), C_SIZEOF() 2020-12-15 17:26:20 -08:00
data-to-inits.cpp [flang] Extension: initialization of LOGICAL with INTEGER & vice versa 2022-01-13 14:22:45 -08:00
data-to-inits.h [flang] Implement semantics for DEC STRUCTURE/RECORD 2022-01-13 13:17:13 -08:00
expression.cpp [flang] Make uninitialized allocatable components explicitly NULL() in structure constructors 2022-03-07 16:41:38 -08:00
mod-file.cpp [flang] Add nonfatal message classes 2022-03-08 11:40:45 -08:00
mod-file.h [flang] Distinguish intrinsic from non-intrinsic modules 2022-01-31 13:31:27 -08:00
pointer-assignment.cpp [flang] Accept pointer assignment w/ remapping to function result 2022-02-15 09:39:34 -08:00
pointer-assignment.h
program-tree.cpp [flang] Fix edge case in USE-associated generics 2022-02-11 16:55:05 -08:00
program-tree.h [flang] Fix edge case in USE-associated generics 2022-02-11 16:55:05 -08:00
resolve-directives.cpp Added OpenMP 5.0 specification based semantic checks for CRITICAL construct name resolution 2021-10-12 22:18:24 +05:30
resolve-directives.h [flang][NFC] Extract name resolution for OpenACC & OpenMP into new file 2020-07-28 16:38:36 -07:00
resolve-labels.cpp [flang] Allow exterior branch to outermost WHERE construct statement 2021-11-11 13:14:42 -08:00
resolve-labels.h
resolve-names-utils.cpp [flang] Add nonfatal message classes 2022-03-08 11:40:45 -08:00
resolve-names-utils.h [flang] Add nonfatal message classes 2022-03-08 11:40:45 -08:00
resolve-names.cpp [flang] Add nonfatal message classes 2022-03-08 11:40:45 -08:00
resolve-names.h [flang] Distinguish intrinsic from non-intrinsic modules 2022-01-31 13:31:27 -08:00
rewrite-parse-tree.cpp [flang] Clean up TODO comments and fix one (DATA constant ambiguity) 2020-12-15 13:36:07 -08:00
rewrite-parse-tree.h
runtime-type-info.cpp [flang][nfc] Fix GCC 11 build 2022-03-03 17:06:54 +00:00
scope.cpp [flang] Generate PDT runtime type info in the type definition scope 2022-03-03 10:15:21 +01:00
semantics.cpp [flang] Distinguish intrinsic from non-intrinsic modules 2022-01-31 13:31:27 -08:00
symbol.cpp [flang] Accommodate module subprograms defined in the same module 2022-03-02 13:07:16 -08:00
tools.cpp [flang] Accommodate module subprograms defined in the same module 2022-03-02 13:07:16 -08:00
type.cpp [flang] Allow DATA initialization of derived types w/ allocatable components 2022-02-14 10:43:49 -08:00
unparse-with-symbols.cpp [flang][openacc] Basic name resolution infrastructure for OpenACC construct 2020-07-26 20:01:35 -04:00