This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix source line continuation in potential macro calls (bugzilla 46768)
ClosedPublic

Authored by klausler on Jul 21 2020, 5:02 PM.

Details

Summary

The prescanner looks for implicit continuation lines when
there are unclosed parentheses at the end of a line, so that
source preprocessing macro references with arguments that span
lines are recognized. The condition that determines this
implicit continuation has been put into a predicate member
function and corrected to apply only when the following line
is source (not a preprocessing directive, comment, &c.).

Fixes bugzilla #46768.

Diff Detail

Event Timeline

klausler created this revision.Jul 21 2020, 5:02 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler updated this revision to Diff 279683.Jul 21 2020, 5:58 PM

Add test.

sscalpone accepted this revision.Jul 21 2020, 6:17 PM

Thank you.

This revision is now accepted and ready to land.Jul 21 2020, 6:17 PM
This revision was automatically updated to reflect the committed changes.