[flang-commits] [PATCH] D95481: [flang] Search for #include "file" in right directory (take 2)

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Jan 26 14:01:40 PST 2021


klausler created this revision.
klausler added reviewers: tskeith, awarzynski.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Make the #include "file" preprocessing directive begin its
search in the same directory as the file containing the directive,
as other preprocessors and our Fortran INCLUDE statement do.

Avoid current working directory for all source files except the original.

Resolve tests.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95481

Files:
  flang/include/flang/Parser/provenance.h
  flang/include/flang/Parser/source.h
  flang/lib/Frontend/FrontendActions.cpp
  flang/lib/Parser/parsing.cpp
  flang/lib/Parser/preprocessor.cpp
  flang/lib/Parser/prescan.cpp
  flang/lib/Parser/provenance.cpp
  flang/lib/Parser/source.cpp
  flang/test/Flang-Driver/Inputs/basictestmoduleone.mod
  flang/test/Flang-Driver/Inputs/module-dir/basictestmoduleone.mod
  flang/test/Flang-Driver/Inputs/module-dir/basictestmoduletwo.mod
  flang/test/Flang-Driver/include-header.f90
  flang/test/Flang-Driver/include-module.f90
  flang/tools/f18/f18.cpp
  flang/unittests/Frontend/FrontendActionTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95481.319407.patch
Type: text/x-patch
Size: 13686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210126/57eb9398/attachment.bin>


More information about the flang-commits mailing list