[all-commits] [llvm/llvm-project] cf2274: [flang] Allow ! and // comments after some preproc...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Fri Jul 17 15:29:13 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: cf2274b779f5ffee476cfe40994e6963a51c6428
https://github.com/llvm/llvm-project/commit/cf2274b779f5ffee476cfe40994e6963a51c6428
Author: peter klausler <pklausler at nvidia.com>
Date: 2020-07-17 (Fri, 17 Jul 2020)
Changed paths:
M flang/lib/Parser/preprocessor.cpp
M flang/lib/Parser/token-sequence.cpp
M flang/lib/Parser/token-sequence.h
A flang/test/Parser/pp-dir-comments.f90
Log Message:
-----------
[flang] Allow ! and // comments after some preprocessing directives
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.
Reviewed By: sscalpone
Differential Revision: https://reviews.llvm.org/D84061
More information about the All-commits
mailing list