[flang-commits] [PATCH] D150780: [flang] Allow compiler directives in macros

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed May 17 07:21:42 PDT 2023


klausler created this revision.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

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


https://reviews.llvm.org/D150780

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150780.523042.patch
Type: text/x-patch
Size: 8914 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230517/2cf0ef7d/attachment-0001.bin>


More information about the flang-commits mailing list