[all-commits] [llvm/llvm-project] 98cf74: [clang] Only modify FileEntryRef names that are ex...

Ben Langmuir via All-commits all-commits at lists.llvm.org
Mon Aug 1 15:46:26 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98cf745a032ea0d29fbddaa204760d4e823c237f
  Author: Ben Langmuir <blangmuir at apple.com>
  Date:   2022-08-01 (Mon, 01 Aug 2022)

  Changed paths:
    M clang/lib/Basic/FileManager.cpp
    M clang/unittests/Basic/FileManagerTest.cpp

  Log Message:
  [clang] Only modify FileEntryRef names that are externally remapped

As progress towards having FileEntryRef contain the requested name of
the file, this commit narrows the "remap" hack to only apply to paths
that were remapped to an external contents path by a VFS. That was
always the original intent of this code, and the fact it was making
relative paths absolute was an unintended side effect.

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

More information about the All-commits mailing list