[flang] Allow compiler directives in macros
authorPeter Klausler <pklausler@nvidia.com>
Wed, 17 May 2023 13:44:56 +0000 (06:44 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Thu, 18 May 2023 18:04:30 +0000 (11:04 -0700)
commitcbc5d42fcedace0b9dcfa2e2a91d41e3ce84908c
tree930ed29ccc0ea0185227dc25e059e713555b519c
parent8fe9718dd5f27168fc282c6420bfae0eb7ee6819
[flang] Allow compiler directives in macros

Modify the prescanner to allow compiler directives to appear in
macro expansions, and adjust the parser to accept a semicolon
as a directive terminator.

Differential Revision: https://reviews.llvm.org/D150780
flang/include/flang/Parser/char-block.h
flang/lib/Parser/Fortran-parsers.cpp
flang/lib/Parser/prescan.cpp
flang/lib/Parser/prescan.h
flang/lib/Parser/token-sequence.cpp
flang/lib/Parser/token-sequence.h
flang/test/Parser/compiler-directives.f90