llvm-project
74342868 - [flang] Recognize compiler directives after expansion in comment (#183626)

Commit
33 days ago
[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.
Author
Parents
Loading