llvm-project/clang/test/ClangScanDeps
Jan Svoboda b672638dbc [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
2022-04-08 09:18:00 +02:00
..
Inputs Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
diagnostics.c [clang][deps] Simplify PREFIX definitions in tests 2022-03-12 16:45:09 +01:00
error.cpp Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
has_include_if_elif.cpp Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
header-search-case-sensitivity.c [clang][deps] Ensure deterministic filename case 2022-04-08 09:18:00 +02:00
header-search-pruning-transitive.c [clang][deps] Attempt to fix test on Windows 2022-03-16 13:36:32 +01:00
header-search-pruning.cpp [clang][deps] NFC: Align path separator conversion in tests 2022-03-16 13:40:09 +01:00
header_stat_before_open.m Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
headerwithdirname.cpp Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
headerwithdirnamefollowedbyinclude.cpp Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
modulemap-via-vfs.m [clang][deps] Create lit substitution for deps-to-rsp 2022-03-23 15:42:10 +01:00
modules-context-hash.c [clang][deps] Simplify PREFIX definitions in tests 2022-03-12 16:45:09 +01:00
modules-fmodule-name-no-module-built.m Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
modules-full-by-mod-name.cpp Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
modules-full.cpp Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
modules-inferred-explicit-build.m [clang][deps] Create lit substitution for deps-to-rsp 2022-03-23 15:42:10 +01:00
modules-inferred.m [clang][deps] Simplify PREFIX definitions in tests 2022-03-12 16:45:09 +01:00
modules-no-undeclared-includes.c [clang][deps] Create lit substitution for deps-to-rsp 2022-03-23 15:42:10 +01:00
modules-pch-common-submodule.c [clang][deps] Create lit substitution for deps-to-rsp 2022-03-23 15:42:10 +01:00
modules-pch-common-via-submodule.c [clang][deps] Create lit substitution for deps-to-rsp 2022-03-23 15:42:10 +01:00
modules-pch-dangling.c [clang][deps] Create lit substitution for deps-to-rsp 2022-03-23 15:42:10 +01:00
modules-pch.c [clang][deps] Create lit substitution for deps-to-rsp 2022-03-23 15:42:10 +01:00
modules-symlink.c [clang][deps] Create lit substitution for deps-to-rsp 2022-03-23 15:42:10 +01:00
modules.cpp Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
no-werror.cpp Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
preprocess_minimized_pragmas.cpp [clang][deps] Keep #pragma push_macro, pop_macro and include_alias when minimizing source code. 2021-11-01 16:04:52 -04:00
preserved-args.c [clang][deps] Simplify PREFIX definitions in tests 2022-03-12 16:45:09 +01:00
regular_cdb.cpp Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
relative_directory.cpp [clang-scan-deps] Fix for input file given as relative path in compilation database "command" entry. 2020-11-12 08:48:17 -05:00
removed-args.c [clang][deps] Simplify PREFIX definitions in tests 2022-03-12 16:45:09 +01:00
resource_directory.c [AIX] Disable tests that fail because of no 64-bit XCOFF object file support 2022-01-09 12:25:24 -05:00
static-analyzer.c Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
strip_diag_serialize.cpp Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
subframework_header_dir_symlink.m
symlink.cpp
target-filename.cpp Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00
vfsoverlay.cpp Revert "[clang][deps] NFC: De-duplicate clang-cl tests" 2022-03-24 18:10:08 +00:00