[all-commits] [llvm/llvm-project] 094b38: [flang] Catch mismatched parentheses in prescanner

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Oct 6 14:00:32 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 094b380c210ac508a1ad5a7c47a760773b0cc6ea
      https://github.com/llvm/llvm-project/commit/094b380c210ac508a1ad5a7c47a760773b0cc6ea
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M flang/lib/Parser/prescan.cpp
    M flang/lib/Parser/token-sequence.cpp
    M flang/lib/Parser/token-sequence.h
    A flang/test/Parser/unmatched-parens.f90

  Log Message:
  -----------
  [flang] Catch mismatched parentheses in prescanner

Source lines with mismatched parentheses are hard cases for error
recovery in parsing, and the best error message (viz.,
"here's an unmatched parenthesis") can be emitted from the
prescanner.

Differential Revision: https://reviews.llvm.org/D111254#3046173




More information about the All-commits mailing list