[all-commits] [llvm/llvm-project] 0eeb15: [flang][driver] Make the driver report diagnostics...

Andrzej WarzyƄski via All-commits all-commits at lists.llvm.org
Thu Jan 21 07:18:22 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0eeb15741bdaa6740c3bfcbed981b9d19d5348fb
      https://github.com/llvm/llvm-project/commit/0eeb15741bdaa6740c3bfcbed981b9d19d5348fb
  Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M flang/lib/Frontend/FrontendActions.cpp
    A flang/test/Frontend/Inputs/empty.h
    A flang/test/Frontend/preprocessor-diag.f90

  Log Message:
  -----------
  [flang][driver] Make the driver report diagnostics from the prescanner

This patch makes sure that diagnostics from the prescanner are reported
when running `flang-new -E` (i.e. only the preprocessor phase is
requested). More specifically, the `PrintPreprocessedAction` action is
updated.

With this patch we make sure that the `f18` and `flang-new` provide
identical output when running the preprocessor and the prescanner
generates diagnostics.

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




More information about the All-commits mailing list