[PATCH] D84061: [flang] Allow ! and // comments after some preprocessing directives

Peter Klausler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 11:23:48 PDT 2020


klausler created this revision.
klausler added reviewers: sscalpone, schweitz.
klausler added a project: Flang.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: DavidTruby.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Old-style C /*comments*/ are omitted from preprocessor directive
token sequences by the prescanner, but line-ending C++ and Fortran
free-form comments are not since their handling might depend on
the directive.  Add code to skip these line-ending comments as
appropriate in place of existing code that just skipped blanks.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84061

Files:
  flang/lib/Parser/preprocessor.cpp
  flang/lib/Parser/token-sequence.cpp
  flang/lib/Parser/token-sequence.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84061.278860.patch
Type: text/x-patch
Size: 3846 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200717/2578fdbf/attachment.bin>


More information about the llvm-commits mailing list