[all-commits] [llvm/llvm-project] 320389: [flang] Fix source line continuation in potential ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Jul 21 18:22:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 320389e849f82403049c76ef06d11bfcef7b82e3
      https://github.com/llvm/llvm-project/commit/320389e849f82403049c76ef06d11bfcef7b82e3
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2020-07-21 (Tue, 21 Jul 2020)

  Changed paths:
    M flang/lib/Parser/prescan.cpp
    M flang/lib/Parser/prescan.h
    A flang/test/Parser/continuation-in-if.f

  Log Message:
  -----------
  [flang] Fix source line continuation in potential macro calls (bugzilla 46768)

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.

Reviewed By: sscalpone

Differential Revision: https://reviews.llvm.org/D84280




More information about the All-commits mailing list