[all-commits] [llvm/llvm-project] 3c2fc7: [flang] Refine tokenization trick that hid macro n...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Wed Jan 8 13:17:37 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3c2fc7a45ae230a32e473e093b4583079050a969
https://github.com/llvm/llvm-project/commit/3c2fc7a45ae230a32e473e093b4583079050a969
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M flang/lib/Parser/prescan.cpp
A flang/test/Preprocessing/bug129131.F
Log Message:
-----------
[flang] Refine tokenization trick that hid macro name (#121990)
In order to properly expose the Hollerith editing item in something like
FORMAT(3I9HHOLLERITH) as its own token, the tokenization routine in the
prescanner has special handling for digit strings followed by letters
("3I" above). This handler's effects are too broad, and prevent a macro
name from being recognized as such in a reported bug; make the test for
a hidden Hollerith more precise.
Fixes https://github.com/llvm/llvm-project/issues/121931.
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