[PATCH] D95388: [flang] Search for #include "file" in right directory

Peter Klausler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 25 12:31:26 PST 2021


klausler created this revision.
klausler added a reviewer: tskeith.
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 after the original.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95388

Files:
  flang/include/flang/Parser/provenance.h
  flang/include/flang/Parser/source.h
  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/tools/f18/f18.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95388.319091.patch
Type: text/x-patch
Size: 9431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210125/14cee047/attachment.bin>


More information about the llvm-commits mailing list