llvm-project/flang/lib/Parser
peter klausler a0226f9bff [flang] Dodge bogus uninitialized data warning from gcc 10.1 via code cleanup
G++ 10.1 emits inappropriate "use of uninitialized data" warnings when
compiling f18.  The warnings stem from two sites in templatized code
whose multiple instantiations magnified the number of warnings.

These changes dodge those warnings by making some innocuous changes to
the code.  In the parser, the idiom defaulted(cut >> x), which yields a
parser that always succeeds, has been replaced with a new equivalent
pass<T>() parser that returns a default-constructed value T{} in an
arguably more readable fashion.  This idiom was the only attestation of
the basic parser cut, so it has been removed and the remaining code
simplified.  In Evaluate/traverse.h, a return {}; was replaced with a
return of a default-constructed member.

Differential Revision: https://reviews.llvm.org/D81747
2020-06-12 10:05:05 -07:00
..
CMakeLists.txt [flang] Use the Flang cmake-functions to add targets. 2020-04-16 15:51:30 +01:00
Fortran-parsers.cpp [flang] Dodge bogus uninitialized data warning from gcc 10.1 via code cleanup 2020-06-12 10:05:05 -07:00
basic-parsers.h [flang] Dodge bogus uninitialized data warning from gcc 10.1 via code cleanup 2020-06-12 10:05:05 -07:00
char-block.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
char-buffer.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
char-set.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
characters.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
debug-parser.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
debug-parser.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
executable-parsers.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
expr-parsers.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
expr-parsers.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
instrumented-parser.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
io-parsers.cpp [flang] Process names in ASSIGN and assigned GOTO 2020-04-03 14:58:07 -07:00
message.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
misc-parsers.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
openmp-parsers.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
parse-tree.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
parsing.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
preprocessor.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
preprocessor.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
prescan.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
prescan.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
program-parsers.cpp [flang] Dodge bogus uninitialized data warning from gcc 10.1 via code cleanup 2020-06-12 10:05:05 -07:00
provenance.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
source.cpp [flang] Fix handling of files without terminating newlines. 2020-04-27 12:40:22 +01:00
stmt-parser.h [flang] Dodge bogus uninitialized data warning from gcc 10.1 via code cleanup 2020-06-12 10:05:05 -07:00
token-parsers.h [flang] Dodge bogus uninitialized data warning from gcc 10.1 via code cleanup 2020-06-12 10:05:05 -07:00
token-sequence.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
token-sequence.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
tools.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
type-parser-implementation.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
type-parsers.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
unparse.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
user-state.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00