[flang-commits] [PATCH] D153910: [flang] Honor #line and related preprocessing directives

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Jun 27 12:40:31 PDT 2023


klausler created this revision.
klausler added reviewers: domada, kiranchandramohan.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, mehdi_amini, jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a reviewer: awarzynski.
Herald added a project: All.
klausler requested review of this revision.

Extend the SourceFile class to take account of #line directives
when computing source file positions for error messages.
Adjust the output of #line directives to -E output so that they
reflect any #line directives that were in the input.


https://reviews.llvm.org/D153910

Files:
  flang/include/flang/Parser/source.h
  flang/lib/Frontend/FrontendActions.cpp
  flang/lib/Lower/Bridge.cpp
  flang/lib/Parser/parsing.cpp
  flang/lib/Parser/preprocessor.cpp
  flang/lib/Parser/preprocessor.h
  flang/lib/Parser/prescan.cpp
  flang/lib/Parser/prescan.h
  flang/lib/Parser/provenance.cpp
  flang/lib/Parser/source.cpp
  flang/lib/Semantics/semantics.cpp
  flang/test/Driver/debug-provenance.f90
  flang/test/Parser/line-directive.f90
  flang/test/Semantics/line-directive.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153910.535099.patch
Type: text/x-patch
Size: 20481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230627/8e002b5d/attachment-0001.bin>


More information about the flang-commits mailing list