[all-commits] [llvm/llvm-project] c2e41b: [flang][Parser] Add whitespace token after the sen...
Tom Eccles via All-commits
all-commits at lists.llvm.org
Tue Jul 15 08:39:55 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c2e41be50f2cc3d1e99c30b1996b8873b05c4b0e
https://github.com/llvm/llvm-project/commit/c2e41be50f2cc3d1e99c30b1996b8873b05c4b0e
Author: Tom Eccles <tom.eccles at arm.com>
Date: 2025-07-15 (Tue, 15 Jul 2025)
Changed paths:
M flang/lib/Parser/prescan.cpp
A flang/test/Preprocessing/omp-sentinel-fixed-form.F
Log Message:
-----------
[flang][Parser] Add whitespace token after the sentinel in fixed form (#148825)
Fixes #148386
The first time the line was classified (using
`Prescanner::ClassifyLine(const char *)`) the line was correctly
classified as a compiler directive. But then later on the token form is
invoked (`Prescanner::ClassifyLine(TokenSequence, Provenance)`). This
one incorrectly classified the line as a comment because there was no
whitespace token right after the sentinel. This fixes the issue by
ensuring this whitespace is added.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list