Page MenuHomePhabricator

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

Authored by klausler on Jul 17 2020, 11:23 AM.



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.

Diff Detail

Event Timeline

klausler created this revision.Jul 17 2020, 11:23 AM
Herald added a project: Restricted Project. · View Herald Transcript
klausler updated this revision to Diff 278904.Jul 17 2020, 2:39 PM

Added test.

sscalpone accepted this revision.Jul 17 2020, 2:43 PM
This revision is now accepted and ready to land.Jul 17 2020, 2:43 PM
This revision was automatically updated to reflect the committed changes.