[flang] Ensure that the parse tree visitation Walk template works on FORMAT.
authorpeter klausler <pklausler@nvidia.com>
Thu, 1 Mar 2018 21:23:31 +0000 (13:23 -0800)
committerpeter klausler <pklausler@nvidia.com>
Thu, 1 Mar 2018 21:35:58 +0000 (13:35 -0800)
commit20364f03517adf696b414f9dc0f27282462da0d1
treef732ac89e5ec670292820c00dfc3fe9c671987e1
parentc88b23e04e14a15d53ad0394f1c8183ca1286f2d
[flang] Ensure that the parse tree visitation Walk template works on FORMAT.
The classes that were segregated into format-specification.h have
also been grouped into a new Fortran::format namespace.
Code added to tools/f18/f18.cc to run a minimal visitor over
the parse trees resulting from successful parses so that any
future build problems with Walk() will be caught earlier.

Rearrange Walk instances, keep format:: ones together.

Original-commit: flang-compiler/f18@685ddb91ceb2217877a887eca14a63a4b725ea12
Reviewed-on: https://github.com/flang-compiler/f18/pull/22
flang/lib/parser/format-specification.h
flang/lib/parser/grammar.h
flang/lib/parser/parse-tree-visitor.h
flang/lib/parser/parse-tree.cc
flang/lib/parser/parse-tree.h
flang/lib/parser/unparse.cc
flang/tools/f18/f18.cc