[all-commits] [llvm/llvm-project] 6110e7: [flang] Search for #include "file" in right direct...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Jan 27 15:41:50 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6110e7716cd0000fdeb2a7edfbec7c9991f1a08a
      https://github.com/llvm/llvm-project/commit/6110e7716cd0000fdeb2a7edfbec7c9991f1a08a
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-01-27 (Wed, 27 Jan 2021)

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

  Log Message:
  -----------
  [flang] Search for #include "file" in right directory (take 2)

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.

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




More information about the All-commits mailing list