aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/TestModuleFileExtension.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2022-04-07 17:05:54 +0200
committerJan Svoboda <jan_svoboda@apple.com>2022-04-08 09:18:00 +0200
commitb672638dbc7cec9a51826520e8f8aef276bac3ee (patch)
treebf34555ac2879fc1ab241bfda7e555e231708a59 /clang/lib/Frontend/TestModuleFileExtension.cpp
parentfc2d8326ae4d6e05c1aa2db7e7dbd8e759bf4d51 (diff)
downloadllvm-b672638dbc7cec9a51826520e8f8aef276bac3ee.zip
llvm-b672638dbc7cec9a51826520e8f8aef276bac3ee.tar.gz
llvm-b672638dbc7cec9a51826520e8f8aef276bac3ee.tar.bz2
[clang][deps] Ensure deterministic filename case
The dependency scanner can reuse single FileManager instance across multiple translation units. This may lead to non-deterministic output depending on which TU gets processed first. One of the problems is that Clang uses DirectoryEntry::getName in the header search algorithm. This function returns the path that was first used to construct the (shared) entry in FileManager. Using DirectoryEntryRef::getName instead preserves the case as it was spelled out for the current "get directory entry" request. rdar://90647508 Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D123229
Diffstat (limited to 'clang/lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions