llvm-project/clang/test/ClangScanDeps
Jan Svoboda 8cc2a13727 [clang][deps] Handle symlinks in minimizing FS
The minimizing and caching filesystem used by the dependency scanner can be configured to **not** minimize some files. That's necessary when scanning a TU with prebuilt inputs (i.e. PCH) that refer to the original (non-minimized) files. Minimizing such files in the dependency scanner would cause discrepancy between the current perceived state of the filesystem and the file sizes stored in the AST file. By not minimizing such files, we avoid creating the discrepancy.

The problem with the current approach is that files that should not be minimized are identified by their path. This breaks down when the prebuilt input (PCH) and the current TU refer to the same file via different paths (i.e. symlinks). This patch switches from paths to `llvm::sys::fs::UniqueID` when identifying ignored files. This is consistent with how the rest of Clang treats files.

Depends on D114966.

Reviewed By: dexonsmith, arphaman

Differential Revision: https://reviews.llvm.org/D114971
2022-01-21 13:04:25 +01:00
..
Inputs [clang][deps] Remove hard-coded resource directory from tests 2021-12-14 10:59:47 +01:00
diagnostics.c [clang][deps] Move tests to the Clang subdirectory 2021-09-10 21:36:49 +02:00
error.cpp [clang][deps] Sanitize both instances of DiagnosticOptions 2021-09-10 14:47:21 +02:00
has_include_if_elif.cpp Reland "[clang-scan-deps] Add support for clang-cl" 2021-04-21 07:56:39 -04:00
header-search-pruning.cpp [clang][deps] Prune unused header search paths 2021-10-12 12:39:23 +02:00
header_stat_before_open.m Reland "[clang-scan-deps] Add support for clang-cl" 2021-04-21 07:56:39 -04:00
headerwithdirname.cpp Reland "[clang-scan-deps] Add support for clang-cl" 2021-04-21 07:56:39 -04:00
headerwithdirnamefollowedbyinclude.cpp Reland "[clang-scan-deps] Add support for clang-cl" 2021-04-21 07:56:39 -04:00
modulemap-via-vfs.m Re-land "[Clang][ScanDeps] Use the virtual path for module maps" 2022-01-06 21:05:05 +00:00
modules-context-hash.c [clang][deps] Fix fragile test 2021-10-27 14:00:13 +02:00
modules-fmodule-name-no-module-built.m [clang][deps] Don't emit `-fmodule-map-file=` 2021-11-18 12:31:24 +01:00
modules-full-by-mod-name.cpp [AIX] Disable tests that fail because of no 64-bit XCOFF object file support 2022-01-09 12:25:24 -05:00
modules-full.cpp [clang][deps] Don't emit `-fmodule-map-file=` 2021-11-18 12:31:24 +01:00
modules-inferred-explicit-build.m Reapply "[clang][deps] Support inferred modules" 2021-05-20 12:41:52 +02:00
modules-inferred.m [clang][deps] Don't emit `-fmodule-map-file=` 2021-11-18 12:31:24 +01:00
modules-pch-common-submodule.c [NFC][AIX]Disable precompiled module file tests on AIX 2021-11-24 13:22:09 -05:00
modules-pch-common-via-submodule.c [NFC][AIX]Disable precompiled module file tests on AIX 2021-11-24 13:22:09 -05:00
modules-pch.c [NFC][AIX]Disable precompiled module file tests on AIX 2021-11-24 13:22:09 -05:00
modules-symlink.c [clang][deps] Handle symlinks in minimizing FS 2022-01-21 13:04:25 +01:00
modules.cpp [clang][deps] Fix failing modules.cpp test 2021-06-14 12:55:56 +02:00
no-werror.cpp Reland "[clang-scan-deps] Add support for clang-cl" 2021-04-21 07:56:39 -04: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] Prevent unintended modifications of the original TU command-line 2021-06-14 13:58:19 +02:00
regular_cdb.cpp [clang][deps] Move invocation adjustments from `clang-scan-deps` to `DependencyScanning` library 2021-06-14 12:23:33 +02: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] Reset some benign codegen options 2021-12-08 11:53:50 +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 Reland "[clang-scan-deps] Add support for clang-cl" 2021-04-21 07:56:39 -04:00
strip_diag_serialize.cpp [clang][deps] Move stripping of diagnostic serialization from `clang-scan-deps` to `DependencyScanning` library 2021-06-14 12:23:32 +02:00
subframework_header_dir_symlink.m
symlink.cpp
target-filename.cpp Reland "[clang-scan-deps] Add support for clang-cl" 2021-04-21 07:56:39 -04:00
vfsoverlay.cpp Reland "[clang-scan-deps] Add support for clang-cl" 2021-04-21 07:56:39 -04:00