[all-commits] [llvm/llvm-project] 743428: [flang] Recognize compiler directives after expans...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Mon Mar 2 14:47:30 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 743428688fb0b3e6e6d466688a3930520d741aba
https://github.com/llvm/llvm-project/commit/743428688fb0b3e6e6d466688a3930520d741aba
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2026-03-02 (Mon, 02 Mar 2026)
Changed paths:
M flang/include/flang/Parser/preprocessor.h
M flang/lib/Parser/preprocessor.cpp
M flang/lib/Parser/prescan.cpp
M flang/lib/Parser/prescan.h
A flang/test/Preprocessing/bug178481.F90
Log Message:
-----------
[flang] Recognize compiler directives after expansion in comment (#183626)
The compiler can recognize a compiler directive when one results from a
macro expansion at the beginning of a non-comment source line, as in
"#define FOO !$OMP". But it can't recognize a compiler directive that
initially appears as a comment line, as in "!BAR" after "#define BAR
$OMP". Extend the prescanner to recognize such cases in free form
source. (Fixed form is a much more complicated case for this recognition
and will be addressed later if needed.)
This is the 2nd version of this patch; the first was reverted after
problems with continuation lines were encountered.
Fixes https://github.com/llvm/llvm-project/issues/178481.
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